azure pipeline template

This commit is contained in:
Darien Raymond committed 2018-11-12 22:37:44 +01:00
1 parent 0cfc13b029
commit d1deebb6a9
3 files changed
+37 -66

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
jobs:
- job: ${{ parameters.name }}
timeoutInMinutes: 30
pool:
vmImage: ${{ parameters.vmImage }}
variables:
GOPATH: '$(system.defaultWorkingDirectory)'
steps:
- checkout: none
- 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 -tags json -v v2ray.com/core/...
workingDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'Test'