From 9343b8879eaeddbd575673181ceb2bd63864efd5 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 12 Nov 2018 22:28:13 +0100 Subject: [PATCH] add coverage job to azure pipeline --- azure-pipelines.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4fc35f48..c7affdce 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,6 +20,29 @@ jobs: workingDirectory: '$(system.defaultWorkingDirectory)' displayName: 'Test' +- job: Linux Coverage + dependsOn: Linux + + pool: + vmImage: 'Ubuntu 16.04' + + 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: | + cd ./src/v2ray.com/core + bash ./testing/coverage/coverall + workingDirectory: '$(system.defaultWorkingDirectory)' + displayName: 'Coverage' + - job: MacOS pool: