1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 14:26:11 -04:00
v2fly/azure-pipelines.yml

42 lines
988 B
YAML
Raw Normal View History

2018-11-12 16:12:01 -05:00
jobs:
2018-11-12 16:37:44 -05:00
- template: azure-pipelines.template.yml
parameters:
name: linux
vmImage: 'ubuntu-16.04'
- template: azure-pipelines.template.yml
parameters:
name: windows
vmImage: 'vs2017-win2016'
2018-11-12 16:12:01 -05:00
2018-11-12 16:37:44 -05:00
- template: azure-pipelines.template.yml
parameters:
name: macos
vmImage: 'macOS-10.13'
2018-11-12 16:12:01 -05:00
2018-11-12 16:37:44 -05:00
- job: linux_coverage
dependsOn: linux
2018-11-12 17:58:26 -05:00
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
2018-11-12 16:37:44 -05:00
timeoutInMinutes: 30
2018-11-12 16:28:13 -05:00
pool:
vmImage: 'Ubuntu 16.04'
variables:
GOPATH: '$(system.defaultWorkingDirectory)'
2018-11-12 17:03:21 -05:00
CODECOV_TOKEN: '$(coverage.token)'
2018-11-12 16:28:13 -05:00
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: |
cd ./src/v2ray.com/core
bash ./testing/coverage/coverall
workingDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'Coverage'