From 01633d410fbc14848fe22ab843ec0c611671625e Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Wed, 20 Feb 2019 18:13:55 +0100 Subject: [PATCH] ci: make java release use latest go code Signed-off-by: Alexander Bezzubov --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0188cec..2248aed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -121,10 +121,17 @@ jobs: stage: publish language: scala jdk: oraclejdk8 + before_install: + # mimics exact behavior of 'go_import_path' for non-go build image + - export GOPATH=${TRAVIS_HOME}/gopath + - mkdir -p ${GOPATH}/src/gopkg.in/src-d/enry.v1 + - tar -Pczf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_BUILD_DIR} . && tar -Pxzf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 + - export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 + - cd ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 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 gopkg.in/src-d/enry.v1/... + - go get -v -t ./... before_script: - cd java - make