diff --git a/.travis.yml b/.travis.yml index 0974d039..ee5b6926 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,12 @@ language: go go_import_path: github.com/src-d/enry go: + - '1.12.x' - '1.11.x' - - '1.10.x' env: global: - GO_VERSION_FOR_JVM='1.11.x' + - GO111MODULE=on matrix: - ONIGURUMA=0 - ONIGURUMA=1 @@ -30,7 +31,7 @@ stages: stage: test install: - - if [[ -n "$ONIGURUMA" ]]; then tags="$tags oniguruma"; fi; go get -v -t --tags "$tags" ./... + - if [[ "${ONIGURUMA}" -gt 0 ]]; then export GO_TAGS='oniguruma'; fi; script: - make test-coverage after_success: @@ -53,7 +54,6 @@ jobs: - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)" - go version - echo $PWD; echo $GOPATH - - go get -v ./... before_script: - cd java - make @@ -64,7 +64,6 @@ jobs: stage: release install: - go version - - go get -v -t ./... script: make packages deploy: provider: releases @@ -80,7 +79,6 @@ jobs: stage: release install: - go version - - go get -v -t ./... script: make linux-shared deploy: provider: releases @@ -101,7 +99,6 @@ jobs: - PATH="/$HOME/osxcross/bin:$PATH" install: - go version - - go get -v -t ./... - sudo apt-get update - sudo apt-get install -y --no-install-recommends clang g++ gcc gcc-multilib libc6-dev libc6-dev-i386 mingw-w64 patch xz-utils - cd ${HOME} @@ -131,7 +128,6 @@ jobs: install: - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)" - go version - - go get -v -t ./... before_script: - cd java - make