From ab7930c09ba093d6316ebe94d0a387976770d5f6 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 12 Nov 2018 21:37:13 +0100 Subject: [PATCH] run test in azure pipeline --- azure-pipelines.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 45620d07..8a405667 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,15 +7,11 @@ pool: vmImage: 'Ubuntu 16.04' variables: - GOBIN: '$(GOPATH)/bin' # Go binaries path - GOROOT: '/usr/local/go1.11' # Go installation path GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path modulePath: '$(GOPATH)/src/v2ray.com/core' # Path to the module's code steps: - script: | - mkdir -p '$(GOBIN)' - mkdir -p '$(GOPATH)/pkg' mkdir -p '$(modulePath)' shopt -s extglob mv !(gopath) '$(modulePath)' @@ -24,12 +20,9 @@ steps: displayName: 'Set up the Go workspace' - script: | + set -x go version go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi - go build -v . + go test -p 1 -tags json -v v2ray.com/core/... workingDirectory: '$(modulePath)' displayName: 'Get dependencies, then build'