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 <bzz@apache.org>
This commit is contained in:
Alexander Bezzubov 2018-10-22 16:45:47 +02:00
parent 5147de90b8
commit 89ec551e70
No known key found for this signature in database
GPG Key ID: 8039F5787EFCD05D

View File

@ -1,7 +1,7 @@
language: go language: go
go: go:
- '1.10' - '1.10.x'
addons: addons:
apt: apt:
@ -13,7 +13,7 @@ matrix:
env: env:
global: global:
- GO_VERSION='1.10' - GO_VERSION='1.10.x'
matrix: matrix:
- ONIGURUMA=0 - ONIGURUMA=0
- ONIGURUMA=1 - ONIGURUMA=1
@ -53,7 +53,8 @@ jobs:
jdk: oraclejdk8 jdk: oraclejdk8
install: 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 - export GOPATH=$HOME/gopath
- mkdir -p $GOPATH/src/gopkg.in/src-d/enry.v1 - mkdir -p $GOPATH/src/gopkg.in/src-d/enry.v1
- rsync -az ${TRAVIS_BUILD_DIR}/ $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 jdk: oraclejdk8
install: 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 - export GOPATH=$HOME/gopath
- mkdir -p $GOPATH/src/gopkg.in/src-d/enry.v1 - mkdir -p $GOPATH/src/gopkg.in/src-d/enry.v1
- rsync -az ${TRAVIS_BUILD_DIR}/ $GOPATH/src/gopkg.in/src-d/enry.v1 - rsync -az ${TRAVIS_BUILD_DIR}/ $GOPATH/src/gopkg.in/src-d/enry.v1