|
| 1 | +# Starter pipeline |
| 2 | +# Start with a minimal pipeline that you can customize to build and deploy your code. |
| 3 | +# Add steps that build, run tests, deploy, and more: |
| 4 | +# https://aka.ms/yaml |
| 5 | +jobs: |
| 6 | +- job: Windows |
| 7 | + pool: |
| 8 | + vmImage: vs2017-win2016 |
| 9 | + steps: |
| 10 | + - powershell: .\build.ps1 |
| 11 | + - task: PublishTestResults@2 |
| 12 | + displayName: 'Publish Test Results' |
| 13 | + inputs: |
| 14 | + testRunner: XUnit |
| 15 | + testResultsFiles: 'artifacts/tests/*.xml' |
| 16 | + mergeTestResults: true |
| 17 | + testRunTitle: '$(Agent.OS)' |
| 18 | + - task: PublishBuildArtifacts@1 |
| 19 | + displayName: 'Publish Artifact: $(Agent.OS) coverage' |
| 20 | + inputs: |
| 21 | + PathtoPublish: '$(System.DefaultWorkingDirectory)\coverage\' |
| 22 | + ArtifactName: '$(Agent.OS)-coverage' |
| 23 | + - task: PublishBuildArtifacts@1 |
| 24 | + displayName: 'Publish Artifact: $(Agent.OS) nuget' |
| 25 | + inputs: |
| 26 | + PathtoPublish: '$(System.DefaultWorkingDirectory)\nuget\' |
| 27 | + ArtifactName: '$(Agent.OS)-nuget' |
| 28 | + |
| 29 | + - job: macOS |
| 30 | + pool: |
| 31 | + vmImage: xcode9-macos10.13 |
| 32 | + steps: |
| 33 | + - script: | |
| 34 | + chmod 755 ./build.sh |
| 35 | + ./build.sh |
| 36 | + - task: PublishTestResults@2 |
| 37 | + displayName: 'Publish Test Results' |
| 38 | + inputs: |
| 39 | + testRunner: XUnit |
| 40 | + testResultsFiles: 'artifacts/tests/*.xml' |
| 41 | + mergeTestResults: true |
| 42 | + testRunTitle: '$(Agent.OS)' |
| 43 | + - task: PublishBuildArtifacts@1 |
| 44 | + displayName: 'Publish Artifact: $(Agent.OS) coverage' |
| 45 | + inputs: |
| 46 | + PathtoPublish: '$(System.DefaultWorkingDirectory)\coverage\' |
| 47 | + ArtifactName: '$(Agent.OS)-coverage' |
| 48 | + - task: PublishBuildArtifacts@1 |
| 49 | + displayName: 'Publish Artifact: $(Agent.OS) nuget' |
| 50 | + inputs: |
| 51 | + PathtoPublish: '$(System.DefaultWorkingDirectory)\nuget\' |
| 52 | + ArtifactName: '$(Agent.OS)-nuget' |
| 53 | + |
| 54 | + - job: Linux |
| 55 | + pool: |
| 56 | + vmImage: ubuntu-16.04 |
| 57 | + steps: |
| 58 | + - script: | |
| 59 | + chmod 755 ./build.sh |
| 60 | + ./build.sh |
| 61 | + - task: PublishTestResults@2 |
| 62 | + displayName: 'Publish Test Results' |
| 63 | + inputs: |
| 64 | + testRunner: XUnit |
| 65 | + testResultsFiles: 'artifacts/tests/*.xml' |
| 66 | + mergeTestResults: true |
| 67 | + testRunTitle: '$(Agent.OS)' |
| 68 | + - task: PublishBuildArtifacts@1 |
| 69 | + displayName: 'Publish Artifact: $(Agent.OS) coverage' |
| 70 | + inputs: |
| 71 | + PathtoPublish: '$(System.DefaultWorkingDirectory)\coverage\' |
| 72 | + ArtifactName: '$(Agent.OS)-coverage' |
| 73 | + - task: PublishBuildArtifacts@1 |
| 74 | + displayName: 'Publish Artifact: $(Agent.OS) nuget' |
| 75 | + inputs: |
| 76 | + PathtoPublish: '$(System.DefaultWorkingDirectory)\nuget\' |
| 77 | + ArtifactName: '$(Agent.OS)-nuget' |
0 commit comments