diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bde317a..e61ef31 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,16 +1,21 @@ pool: - name: Hosted VS2017 - + vmImage: 'Hosted VS2017' + variables: - buildConfiguration: Release - sln: ./IronVelocity.sln - tests: ./test/**/*.csproj + buildConfiguration: 'Release' + sln: './IronVelocity.sln' + tests: './test/**/*.csproj' steps: -- script: dotnet build --configuration $(buildConfiguration) $(sln) -- script: dotnet test $(tests) --logger trx +- script: | + dotnet build $(sln) --configuration $(buildConfiguration) + dotnet test $(tests) --configuration $(buildConfiguration) --logger trx + dotnet publish $(sln) --configuration $(buildConfiguration) --output $BUILD_ARTIFACTSTAGINGDIRECTORY + - task: PublishTestResults@2 + condition: always() inputs: testRunner: VSTest testResultsFiles: '**/*.trx' - condition: always() \ No newline at end of file + +- task: PublishBuildArtifacts@1