From 89ec551e70971e633a4383ffe9a59f870c1ed4c4 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Mon, 22 Oct 2018 16:45:47 +0200 Subject: [PATCH] ci: use go 1.10.x gimme version on TravisCI is old, 1.2 and does not support .x resulting in `I don't have any idea what to do with '1.10.x' but it works on latest master https://github.com/travis-ci/gimme#asking-gimme-what-a-version-is thus opting out in always running a latest gimme Signed-off-by: Alexander Bezzubov --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b2c3d36..16026ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: go go: - - '1.10' + - '1.10.x' addons: apt: @@ -13,7 +13,7 @@ matrix: env: global: - - GO_VERSION='1.10' + - GO_VERSION='1.10.x' matrix: - ONIGURUMA=0 - ONIGURUMA=1 @@ -53,7 +53,8 @@ jobs: jdk: oraclejdk8 install: - - GIMME_OUTPUT=$(gimme $GO_VERSION | tee -a $HOME/.bashrc) && eval "$GIMME_OUTPUT" + - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION bash)" + - go version - export GOPATH=$HOME/gopath - mkdir -p $GOPATH/src/gopkg.in/src-d/enry.v1 - rsync -az ${TRAVIS_BUILD_DIR}/ $GOPATH/src/gopkg.in/src-d/enry.v1 @@ -121,7 +122,8 @@ jobs: jdk: oraclejdk8 install: - - GIMME_OUTPUT=$(gimme $GO_VERSION | tee -a $HOME/.bashrc) && eval "$GIMME_OUTPUT" + - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION bash)" + - go version - export GOPATH=$HOME/gopath - mkdir -p $GOPATH/src/gopkg.in/src-d/enry.v1 - rsync -az ${TRAVIS_BUILD_DIR}/ $GOPATH/src/gopkg.in/src-d/enry.v1