mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
914 B
32 lines
914 B
jobs:
|
|
- job: ${{ parameters.name }}
|
|
timeoutInMinutes: 30
|
|
|
|
pool:
|
|
vmImage: ${{ parameters.vmImage }}
|
|
|
|
variables:
|
|
GOPATH: '$(system.defaultWorkingDirectory)'
|
|
|
|
steps:
|
|
- checkout: none
|
|
- task: GoTool@0
|
|
inputs:
|
|
version: '1.11.2'
|
|
- script: |
|
|
go version
|
|
go get -v -t -d v2ray.com/core/...
|
|
go get -v -t -d v2ray.com/ext/...
|
|
go get -u github.com/jstemmer/go-junit-report 2>&1 | go-junit-report > report.xml
|
|
workingDirectory: '$(system.defaultWorkingDirectory)'
|
|
displayName: 'Fetch sources'
|
|
- script: |
|
|
go test -p 1 -timeout 30m -v v2ray.com/core/...
|
|
workingDirectory: '$(system.defaultWorkingDirectory)'
|
|
displayName: 'Test'
|
|
- task: PublishTestResults@2
|
|
inputs:
|
|
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
|
|
testResultsFiles: 'report.xml'
|
|
searchFolder: '$(System.DefaultWorkingDirectory)' # Optional
|