2018-11-12 21:37:44 +00:00
|
|
|
jobs:
|
|
|
|
- job: ${{ parameters.name }}
|
|
|
|
timeoutInMinutes: 30
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: ${{ parameters.vmImage }}
|
|
|
|
|
|
|
|
variables:
|
|
|
|
GOPATH: '$(system.defaultWorkingDirectory)'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout: none
|
2018-11-12 22:58:26 +00:00
|
|
|
- task: GoTool@0
|
2018-11-12 23:00:12 +00:00
|
|
|
inputs:
|
|
|
|
version: '1.11.2'
|
2018-11-12 21:37:44 +00:00
|
|
|
- script: |
|
|
|
|
go version
|
|
|
|
go get -v -t -d v2ray.com/core/...
|
|
|
|
go get -v -t -d v2ray.com/ext/...
|
|
|
|
workingDirectory: '$(system.defaultWorkingDirectory)'
|
|
|
|
displayName: 'Fetch sources'
|
|
|
|
- script: |
|
2018-11-12 22:07:04 +00:00
|
|
|
go test -p 1 -timeout 30m -v v2ray.com/core/...
|
2018-11-12 21:37:44 +00:00
|
|
|
workingDirectory: '$(system.defaultWorkingDirectory)'
|
|
|
|
displayName: 'Test'
|