1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 02:35:23 +00:00
v2fly/azure-pipelines.yml

84 lines
2.2 KiB
YAML
Raw Normal View History

2019-02-06 22:25:58 +00:00
trigger:
batch: true
2018-11-12 21:12:01 +00:00
jobs:
2018-11-12 21:37:44 +00: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 21:12:01 +00:00
2018-11-12 21:37:44 +00:00
- template: azure-pipelines.template.yml
parameters:
name: macos
vmImage: 'macOS-10.13'
2018-11-12 21:12:01 +00:00
2018-11-12 21:37:44 +00:00
- job: linux_coverage
dependsOn: linux
2018-11-12 22:58:26 +00:00
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
2018-11-12 21:37:44 +00:00
timeoutInMinutes: 30
2018-11-12 21:28:13 +00:00
pool:
vmImage: 'Ubuntu 16.04'
variables:
GOPATH: '$(system.defaultWorkingDirectory)'
2018-11-12 22:03:21 +00:00
CODECOV_TOKEN: '$(coverage.token)'
2018-11-12 21:28:13 +00:00
steps:
- checkout: none
2019-02-06 22:25:58 +00:00
- task: GoTool@0
inputs:
version: '1.11.5'
2018-11-12 21:28:13 +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: |
cd ./src/v2ray.com/core
bash ./testing/coverage/coverall
workingDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'Coverage'
2019-02-06 22:25:58 +00:00
- job: make_release
dependsOn: linux
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
timeoutInMinutes: 60
pool:
vmImage: 'Ubuntu 16.04'
variables:
GOPATH: '$(system.defaultWorkingDirectory)'
CODECOV_TOKEN: '$(coverage.token)'
BAZEL_VER: '0.22.0'
steps:
- checkout: none
- task: GoTool@0
inputs:
version: '1.11.5'
- 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: |
curl -L -O https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VER}/bazel-${BAZEL_VER}-installer-linux-x86_64.sh
chmod +x bazel-${BAZEL_VER}-installer-linux-x86_64.sh
./bazel-${BAZEL_VER}-installer-linux-x86_64.sh
workingDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'Install Bazel'
- script: |
cd ./src/v2ray.com/core
bazel build --action_env=GOPATH=$GOPATH --action_env=PATH=$PATH --action_env=GPG_PASS=${SIGN_KEY_PASS} //release:all
workingDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'Build Binaries'