From 85de120c1739f2618a9e1851bb2062cb21e87c4f Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Thu, 11 Apr 2019 21:35:49 +0200 Subject: [PATCH] ci: export env vars Signed-off-by: Alexander Bezzubov --- .travis.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e0aaf74..985a41d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ language: go go_import_path: gopkg.in/src-d/enry.v1 go: - - '1.11.6' + - '1.11.6' # specific versions until https://github.com/golang/go/issues/31293 - '1.12.1' env: global: @@ -30,7 +30,12 @@ stages: stage: test install: - - if [[ "${ONIGURUMA}" -gt 0 ]]; then export tags="${tags} oniguruma"; CGO_ENABLED=1; fi; go get -v -t -tags "${tags}" ./... + - > + if [[ "${ONIGURUMA}" -gt 0 ]]; then + export tags="${tags} oniguruma"; + export CGO_ENABLED=1; + fi; + - go get -v -t -tags "${tags}" ./... script: - make test-coverage after_success: @@ -43,7 +48,7 @@ jobs: language: scala jdk: oraclejdk8 before_install: - - CGO_ENABLED=1 + - export CGO_ENABLED=1 # 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 @@ -123,7 +128,7 @@ jobs: language: scala jdk: oraclejdk8 before_install: - - CGO_ENABLED=1 + - export CGO_ENABLED=1 # 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