trigger: batch: true jobs: - template: azure-pipelines.template.yml parameters: name: linux vmImage: 'ubuntu-16.04' - template: azure-pipelines.template.yml parameters: name: windows vmImage: 'vs2017-win2016' - template: azure-pipelines.template.yml parameters: name: macos vmImage: 'macOS-10.13' - job: linux_coverage dependsOn: linux condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) timeoutInMinutes: 30 pool: vmImage: 'Ubuntu 16.04' variables: GOPATH: '$(system.defaultWorkingDirectory)' CODECOV_TOKEN: '$(coverage.token)' 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: | cd ./src/v2ray.com/core bash ./testing/coverage/coverall workingDirectory: '$(system.defaultWorkingDirectory)' displayName: 'Coverage' - 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'