1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 14:56:33 -04:00
v2fly/azure-pipelines.template.yml

32 lines
914 B
YAML
Raw Normal View History

2018-11-12 16:37:44 -05:00
jobs:
- job: ${{ parameters.name }}
timeoutInMinutes: 30
pool:
vmImage: ${{ parameters.vmImage }}
variables:
GOPATH: '$(system.defaultWorkingDirectory)'
steps:
- checkout: none
2018-11-12 17:58:26 -05:00
- task: GoTool@0
2018-11-12 18:00:12 -05:00
inputs:
version: '1.11.2'
2018-11-12 16:37:44 -05:00
- script: |
go version
go get -v -t -d v2ray.com/core/...
go get -v -t -d v2ray.com/ext/...
2019-01-18 09:05:45 -05:00
go get -u github.com/jstemmer/go-junit-report
2018-11-12 16:37:44 -05:00
workingDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'Fetch sources'
- script: |
2019-01-18 09:05:45 -05:00
go test -p 1 -timeout 30m -v v2ray.com/core/... 2>&1 | go-junit-report > report.xml
2018-11-12 16:37:44 -05:00
workingDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'Test'
2019-01-18 09:04:56 -05:00
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
testResultsFiles: 'report.xml'
searchFolder: '$(System.DefaultWorkingDirectory)' # Optional