From 5be2121a3e51db8604ffd586868c82d33d5ffdc1 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Tue, 4 Jun 2019 23:22:22 +0000 Subject: [PATCH] Only run pipeline tests if all previous steps succeeded (#5886) --- azure-pipelines-linux-mac.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-linux-mac.yml b/azure-pipelines-linux-mac.yml index 5e0d8f3e9f..e7e10a8560 100644 --- a/azure-pipelines-linux-mac.yml +++ b/azure-pipelines-linux-mac.yml @@ -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: