ci: use "gimme" to install Golang in Travis CI

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-06-22 13:36:23 +02:00 committed by mergify[bot]
parent f83a065c8a
commit 33dc861f23

View File

@ -17,8 +17,6 @@ branches:
only: only:
- master - master
go: 1.13.x
env: env:
global: global:
- GOLANGCI_VERSION=v1.21.0 - GOLANGCI_VERSION=v1.21.0
@ -36,6 +34,9 @@ env:
- CEPH_CSI_RUN_ALL_TESTS=true - CEPH_CSI_RUN_ALL_TESTS=true
before_install: before_install:
- export GOLANG_VERSION=$(source build.env ; echo ${GOLANG_VERSION})
- gimme ${GOLANG_VERSION}
- source ~/.gimme/envs/go${GOLANG_VERSION}.env
- mkdir -p $GOPATH/bin - mkdir -p $GOPATH/bin
before_script: before_script: