ci: export env vars

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
Alexander Bezzubov 2019-04-11 21:35:49 +02:00
parent 41478262f3
commit 85de120c17
No known key found for this signature in database
GPG Key ID: 8039F5787EFCD05D

View File

@ -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