mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-05-18 13:09:04 -04:00
azure pipeline template
This commit is contained in:
parent
0cfc13b029
commit
d1deebb6a9
22
azure-pipelines.template.yml
Normal file
22
azure-pipelines.template.yml
Normal 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'
|
@ -1,27 +1,22 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- job: Linux
|
- template: azure-pipelines.template.yml
|
||||||
|
parameters:
|
||||||
|
name: linux
|
||||||
|
vmImage: 'ubuntu-16.04'
|
||||||
|
|
||||||
pool:
|
- template: azure-pipelines.template.yml
|
||||||
vmImage: 'Ubuntu 16.04'
|
parameters:
|
||||||
|
name: windows
|
||||||
|
vmImage: 'vs2017-win2016'
|
||||||
|
|
||||||
variables:
|
- template: azure-pipelines.template.yml
|
||||||
GOPATH: '$(system.defaultWorkingDirectory)'
|
parameters:
|
||||||
|
name: macos
|
||||||
|
vmImage: 'macOS-10.13'
|
||||||
|
|
||||||
steps:
|
- job: linux_coverage
|
||||||
- checkout: none
|
dependsOn: linux
|
||||||
- script: |
|
timeoutInMinutes: 30
|
||||||
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'
|
|
||||||
|
|
||||||
- job: Linux_Coverage
|
|
||||||
dependsOn: Linux
|
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'Ubuntu 16.04'
|
vmImage: 'Ubuntu 16.04'
|
||||||
@ -42,45 +37,3 @@ jobs:
|
|||||||
bash ./testing/coverage/coverall
|
bash ./testing/coverage/coverall
|
||||||
workingDirectory: '$(system.defaultWorkingDirectory)'
|
workingDirectory: '$(system.defaultWorkingDirectory)'
|
||||||
displayName: 'Coverage'
|
displayName: 'Coverage'
|
||||||
|
|
||||||
- job: MacOS
|
|
||||||
|
|
||||||
pool:
|
|
||||||
vmImage: 'macOS-10.13'
|
|
||||||
|
|
||||||
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'
|
|
||||||
|
|
||||||
- job: Windows
|
|
||||||
|
|
||||||
pool:
|
|
||||||
vmImage: 'vs2017-win2016'
|
|
||||||
|
|
||||||
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'
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -n "${TRAVIS_TAG}" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
FAIL=0
|
FAIL=0
|
||||||
|
|
||||||
V2RAY_OUT=${GOPATH}/out/v2ray
|
V2RAY_OUT=${GOPATH}/out/v2ray
|
||||||
|
Loading…
x
Reference in New Issue
Block a user