Skip to content

Commit

Permalink
Azure pipelines test changed (#270)
Browse files Browse the repository at this point in the history
* Set up CI with Azure Pipelines

[skip ci]

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Temperory remove make test script

Co-authored-by: Arcturus <[email protected]>
  • Loading branch information
tzhanl and ArcturusZhang authored Feb 19, 2020
1 parent 75e9940 commit 86c76a3
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pool:

variables:
GOBIN: '$(GOPATH)/bin' # Go binaries path
GOROOT: '/usr/local/go1.11' # Go installation path
GOROOT: '/usr/local/go1.13' # Go installation path
GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code

Expand All @@ -22,18 +22,21 @@ steps:
mkdir -p '$(modulePath)'
shopt -s extglob
shopt -s dotglob
mv !(gopath) '$(modulePath)'
mv !(work) '$(modulePath)'
echo '##vso[task.prependpath]$(GOBIN)'
echo '##vso[task.prependpath]$(GOROOT)/bin'
displayName: 'Set up the Go workspace'

- script: |
set -e
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 .
curl -sSL https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure -v
go get -u golang.org/x/lint/golint
workingDirectory: '$(modulePath)'
displayName: 'Install Dependencies'
- script: go vet $(go list ./... | grep -v vendor)
workingDirectory: '$(modulePath)'
displayName: 'Vet'
- script: go build -v $(go list ./... | grep -v vendor)
workingDirectory: '$(modulePath)'
displayName: 'Get dependencies, then build'
displayName: 'Build'

0 comments on commit 86c76a3

Please sign in to comment.