Bump go version to 1.14 and 1.13 (#343)

This commit is contained in:
Thomas Pelletier
2020-03-25 12:52:59 -04:00
committed by GitHub
parent eb7280e4a7
commit 556d384d4c
+19 -19
View File
@@ -13,9 +13,9 @@ stages:
vmImage: ubuntu-latest
steps:
- task: GoTool@0
displayName: "Install Go 1.13"
displayName: "Install Go 1.14"
inputs:
version: "1.13"
version: "1.14"
- script: echo "##vso[task.setvariable variable=PATH]${PATH}:/home/vsts/go/bin/"
- script: mkdir -p ${HOME}/go/src/github.com/pelletier/go-toml
- script: cp -R . ${HOME}/go/src/github.com/pelletier/go-toml
@@ -36,9 +36,9 @@ stages:
vmImage: ubuntu-latest
steps:
- task: GoTool@0
displayName: "Install Go 1.13"
displayName: "Install Go 1.14"
inputs:
version: "1.13"
version: "1.14"
- task: Go@0
displayName: "go fmt ./..."
inputs:
@@ -51,9 +51,9 @@ stages:
vmImage: ubuntu-latest
steps:
- task: GoTool@0
displayName: "Install Go 1.13"
displayName: "Install Go 1.14"
inputs:
version: "1.13"
version: "1.14"
- task: Go@0
displayName: "Generate coverage"
inputs:
@@ -69,9 +69,9 @@ stages:
vmImage: ubuntu-latest
steps:
- task: GoTool@0
displayName: "Install Go 1.13"
displayName: "Install Go 1.14"
inputs:
version: "1.13"
version: "1.14"
- script: echo "##vso[task.setvariable variable=PATH]${PATH}:/home/vsts/go/bin/"
- task: Bash@3
inputs:
@@ -84,9 +84,9 @@ stages:
vmImage: ubuntu-latest
steps:
- task: GoTool@0
displayName: "Install Go 1.13"
displayName: "Install Go 1.14"
inputs:
version: "1.13"
version: "1.14"
- script: echo "##vso[task.setvariable variable=PATH]${PATH}:/home/vsts/go/bin/"
- script: mkdir -p ${HOME}/go/src/github.com/pelletier/go-toml
- script: cp -R . ${HOME}/go/src/github.com/pelletier/go-toml
@@ -100,6 +100,15 @@ stages:
displayName: "unit tests"
strategy:
matrix:
linux 1.14:
goVersion: '1.14'
imageName: 'ubuntu-latest'
mac 1.14:
goVersion: '1.14'
imageName: 'macOS-latest'
windows 1.14:
goVersion: '1.14'
imageName: 'windows-latest'
linux 1.13:
goVersion: '1.13'
imageName: 'ubuntu-latest'
@@ -109,15 +118,6 @@ stages:
windows 1.13:
goVersion: '1.13'
imageName: 'windows-latest'
linux 1.12:
goVersion: '1.12'
imageName: 'ubuntu-latest'
mac 1.12:
goVersion: '1.12'
imageName: 'macOS-latest'
windows 1.12:
goVersion: '1.12'
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
steps: