mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
ci: export env vars
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
parent
41478262f3
commit
85de120c17
13
.travis.yml
13
.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
|
||||
|
Loading…
Reference in New Issue
Block a user