mirror of https://github.com/v2ray/v2ray-core
generate test report only on linux
parent
ebbc70b409
commit
c0fe58e4a4
|
@ -24,8 +24,15 @@ jobs:
|
||||||
- script: |
|
- script: |
|
||||||
go test -p 1 -timeout 30m -v v2ray.com/core/... 2>&1 | $(GOBIN)/go-junit-report > report.xml
|
go test -p 1 -timeout 30m -v v2ray.com/core/... 2>&1 | $(GOBIN)/go-junit-report > report.xml
|
||||||
workingDirectory: '$(system.defaultWorkingDirectory)'
|
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'
|
displayName: 'Test'
|
||||||
|
condition: in(variables['Agent.OS'], 'Windows_NT')
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
condition: in(variables['Agent.OS'], 'Linux')
|
||||||
inputs:
|
inputs:
|
||||||
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
|
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
|
||||||
testResultsFiles: 'report.xml'
|
testResultsFiles: 'report.xml'
|
||||||
|
|
Loading…
Reference in New Issue