Only run pipeline tests if all previous steps succeeded (#5886)

This commit is contained in:
Charles Gagnon
2019-06-04 23:22:22 +00:00
committed by GitHub
parent bf643cc85f
commit 5be2121a3e

View File

@@ -46,12 +46,12 @@ steps:
- script: |
DISPLAY=:10 ./scripts/test.sh --reporter mocha-junit-reporter
displayName: 'Tests'
condition: eq(variables['Agent.OS'], 'Linux')
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
- script: |
DISPLAY=:10 ./scripts/test.sh --reporter mocha-junit-reporter --coverage
displayName: 'Tests'
condition: ne(variables['Agent.OS'], 'Linux')
condition: and(succeeded(), ne(variables['Agent.OS'], 'Linux'))
- task: PublishTestResults@2
inputs: