mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-09-20 07:21:22 +00:00
ci: GOPATH-independent simplifications
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
parent
9a46d6bc8d
commit
cb765d1243
23
.travis.yml
23
.travis.yml
@ -9,6 +9,7 @@ go:
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- GO_VERSION_FOR_JVM='1.11.x'
|
- GO_VERSION_FOR_JVM='1.11.x'
|
||||||
|
- CGO_ENABLED=0
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
matrix:
|
matrix:
|
||||||
- ONIGURUMA=0
|
- ONIGURUMA=0
|
||||||
@ -32,8 +33,8 @@ stage: test
|
|||||||
install:
|
install:
|
||||||
- >
|
- >
|
||||||
if [[ "${ONIGURUMA}" -gt 0 ]]; then
|
if [[ "${ONIGURUMA}" -gt 0 ]]; then
|
||||||
export GO_TAGS='oniguruma';
|
|
||||||
export CGO_ENABLED=1;
|
export CGO_ENABLED=1;
|
||||||
|
export GO_TAGS='oniguruma';
|
||||||
fi;
|
fi;
|
||||||
script:
|
script:
|
||||||
- make test-coverage
|
- make test-coverage
|
||||||
@ -46,18 +47,10 @@ jobs:
|
|||||||
stage: test
|
stage: test
|
||||||
language: scala
|
language: scala
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
before_install:
|
|
||||||
- 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/github.com/src-d/enry
|
|
||||||
- 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/github.com/src-d/enry
|
|
||||||
- export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/github.com/src-d/enry
|
|
||||||
- cd ${TRAVIS_HOME}/gopath/src/github.com/src-d/enry
|
|
||||||
install:
|
install:
|
||||||
|
- export CGO_ENABLED=1
|
||||||
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)"
|
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)"
|
||||||
- go version
|
- go version
|
||||||
- echo $PWD; echo $GOPATH
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd java
|
- cd java
|
||||||
- make
|
- make
|
||||||
@ -96,7 +89,6 @@ jobs:
|
|||||||
|
|
||||||
- name: 'macOS shared lib'
|
- name: 'macOS shared lib'
|
||||||
stage: release
|
stage: release
|
||||||
sudo: true
|
|
||||||
env:
|
env:
|
||||||
- OSXCROSS_PACKAGE="osxcross_3034f7149716d815bc473d0a7b35d17e4cf175aa.tar.gz"
|
- OSXCROSS_PACKAGE="osxcross_3034f7149716d815bc473d0a7b35d17e4cf175aa.tar.gz"
|
||||||
- OSXCROSS_URL="https://github.com/bblfsh/client-scala/releases/download/v1.5.2/${OSXCROSS_PACKAGE}"
|
- OSXCROSS_URL="https://github.com/bblfsh/client-scala/releases/download/v1.5.2/${OSXCROSS_PACKAGE}"
|
||||||
@ -122,15 +114,8 @@ jobs:
|
|||||||
stage: publish
|
stage: publish
|
||||||
language: scala
|
language: scala
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
before_install:
|
|
||||||
- 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/github.com/src-d/enry
|
|
||||||
- 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/github.com/src-d/enry
|
|
||||||
- export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/github.com/src-d/enry
|
|
||||||
- cd ${TRAVIS_HOME}/gopath/src/github.com/src-d/enry
|
|
||||||
install:
|
install:
|
||||||
|
- export CGO_ENABLED=1
|
||||||
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)"
|
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)"
|
||||||
- go version
|
- go version
|
||||||
before_script:
|
before_script:
|
||||||
|
Loading…
Reference in New Issue
Block a user