mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-05 17:57:42 -05:00
26 lines
610 B
YAML
26 lines
610 B
YAML
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/...
|
|
workingDirectory: '$(system.defaultWorkingDirectory)'
|
|
displayName: 'Fetch sources'
|
|
- script: |
|
|
go test -p 1 -timeout 30m -v v2ray.com/core/...
|
|
workingDirectory: '$(system.defaultWorkingDirectory)'
|
|
displayName: 'Test'
|