From 7c43ed9cdb40604a24779a51f5e4662bbcfbc54b Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Fri, 3 Aug 2018 15:12:44 -0700 Subject: [PATCH] Add VSTS build configuration --- .editorconfig | 3 +++ .vsts-ci.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .vsts-ci.yml diff --git a/.editorconfig b/.editorconfig index c30483a749..672a9042ec 100644 --- a/.editorconfig +++ b/.editorconfig @@ -18,4 +18,7 @@ trim_trailing_whitespace = false # Web Files [*.{htm,html,js,ts,css,scss,less}] insert_final_newline = true +indent_size = 2 + +[*.yml] indent_size = 2 \ No newline at end of file diff --git a/.vsts-ci.yml b/.vsts-ci.yml new file mode 100644 index 0000000000..23077d5cd9 --- /dev/null +++ b/.vsts-ci.yml @@ -0,0 +1,31 @@ +trigger: +- master +- release/* +phases: +- phase: Windows + queue: + name: Hosted VS2017 + parallel: 2 + matrix: + Debug: + BuildConfiguration: Debug + Release: + BuildConfiguration: Release + steps: + - checkout: self + clean: true + - script: .\build.cmd -ci /p:Configuration=$(BuildConfiguration) + displayName: Run build.cmd + - task: PublishTestResults@2 + displayName: Publish test results + condition: always() + inputs: + testRunner: vstest + testResultsFiles: 'artifacts/logs/**/*.trx' + - task: PublishBuildArtifacts@1 + displayName: Upload artifacts + condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) + inputs: + pathtoPublish: artifacts/ + artifactName: artifacts-$(BuildConfiguration) + artifactType: Container