Update azure-pipelines-2.yml
This commit is contained in:
parent
75a13c644a
commit
588ea70481
1 changed files with 3 additions and 3 deletions
|
|
@ -7,10 +7,10 @@ trigger:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest-v22
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GOBIN: '$(GOPATH)/binj' # Go binaries path
|
GOBIN: '$(GOPATH)/bin' # Go binaries path
|
||||||
GOROOT: '/usr/local/go1.11' # Go installation path
|
GOROOT: '/usr/local/go1.11' # Go installation path
|
||||||
GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path
|
GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path
|
||||||
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code
|
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code
|
||||||
|
|
@ -33,7 +33,7 @@ steps:
|
||||||
if [ -f Gopkg.toml ]; then
|
if [ -f Gopkg.toml ]; then
|
||||||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
dep ensure
|
dep ensure
|
||||||
fi
|
If
|
||||||
go build -v .
|
go build -v .
|
||||||
workingDirectory: '$(modulePath)'
|
workingDirectory: '$(modulePath)'
|
||||||
displayName: 'Get dependencies, then build'
|
displayName: 'Get dependencies, then build'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue