From c0fe58e4a4629ab02bfbbbf542aa4128660569ac Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 18 Jan 2019 15:22:15 +0100 Subject: [PATCH] generate test report only on linux --- azure-pipelines.template.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/azure-pipelines.template.yml b/azure-pipelines.template.yml index 9dcd56eb6..ed80391eb 100644 --- a/azure-pipelines.template.yml +++ b/azure-pipelines.template.yml @@ -24,8 +24,15 @@ jobs: - script: | go test -p 1 -timeout 30m -v v2ray.com/core/... 2>&1 | $(GOBIN)/go-junit-report > report.xml workingDirectory: '$(system.defaultWorkingDirectory)' + displayName: 'Test & Generate Report' + condition: in(variables['Agent.OS'], 'Linux') + - script: | + go test -p 1 -timeout 30m -v v2ray.com/core/... + workingDirectory: '$(system.defaultWorkingDirectory)' displayName: 'Test' + condition: in(variables['Agent.OS'], 'Windows_NT') - task: PublishTestResults@2 + condition: in(variables['Agent.OS'], 'Linux') inputs: testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit testResultsFiles: 'report.xml'