Skip to content

Commit

Permalink
Use azure pipelines tool task to install Go.
Browse files Browse the repository at this point in the history
  • Loading branch information
pekim committed Jun 5, 2019
1 parent 4bdc9df commit 26544a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ pool:
vmImage: 'ubuntu-latest'

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

Expand All @@ -20,6 +17,11 @@ steps:
xvfb
displayName: 'install dependencies'
- task: GoTool@0
inputs:
version: '1.12.5'
displayName: 'install Go'

- script: |
mkdir -p '$(GOBIN)'
mkdir -p '$(GOPATH)/pkg'
Expand Down

0 comments on commit 26544a2

Please sign in to comment.