mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-24 08:18:52 -03:00
ci: test on 2 latest Go version \w modules
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
parent
20c6d2845a
commit
9a46d6bc8d
16
.travis.yml
16
.travis.yml
@ -4,12 +4,12 @@ language: go
|
|||||||
go_import_path: github.com/src-d/enry
|
go_import_path: github.com/src-d/enry
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- '1.11.6' # specific versions until https://github.com/golang/go/issues/31293
|
- '1.12.x'
|
||||||
- '1.12.1'
|
- '1.11.x'
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- GO_VERSION_FOR_JVM='1.11.1'
|
- GO_VERSION_FOR_JVM='1.11.x'
|
||||||
- CGO_ENABLED=0
|
- GO111MODULE=on
|
||||||
matrix:
|
matrix:
|
||||||
- ONIGURUMA=0
|
- ONIGURUMA=0
|
||||||
- ONIGURUMA=1
|
- ONIGURUMA=1
|
||||||
@ -32,10 +32,9 @@ stage: test
|
|||||||
install:
|
install:
|
||||||
- >
|
- >
|
||||||
if [[ "${ONIGURUMA}" -gt 0 ]]; then
|
if [[ "${ONIGURUMA}" -gt 0 ]]; then
|
||||||
export tags="${tags} oniguruma";
|
export GO_TAGS='oniguruma';
|
||||||
export CGO_ENABLED=1;
|
export CGO_ENABLED=1;
|
||||||
fi;
|
fi;
|
||||||
- go get -v -t -tags "${tags}" ./...
|
|
||||||
script:
|
script:
|
||||||
- make test-coverage
|
- make test-coverage
|
||||||
after_success:
|
after_success:
|
||||||
@ -59,7 +58,6 @@ jobs:
|
|||||||
- 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
|
- echo $PWD; echo $GOPATH
|
||||||
- go get -v ./...
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd java
|
- cd java
|
||||||
- make
|
- make
|
||||||
@ -70,7 +68,6 @@ jobs:
|
|||||||
stage: release
|
stage: release
|
||||||
install:
|
install:
|
||||||
- go version
|
- go version
|
||||||
- go get -v -t ./...
|
|
||||||
script: make packages
|
script: make packages
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
@ -86,7 +83,6 @@ jobs:
|
|||||||
stage: release
|
stage: release
|
||||||
install:
|
install:
|
||||||
- go version
|
- go version
|
||||||
- go get -v -t ./...
|
|
||||||
script: make linux-shared
|
script: make linux-shared
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
@ -107,7 +103,6 @@ jobs:
|
|||||||
- PATH="/$HOME/osxcross/bin:$PATH"
|
- PATH="/$HOME/osxcross/bin:$PATH"
|
||||||
install:
|
install:
|
||||||
- go version
|
- go version
|
||||||
- go get -v -t ./...
|
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- sudo apt-get install -y --no-install-recommends clang g++ gcc gcc-multilib libc6-dev libc6-dev-i386 mingw-w64 patch xz-utils
|
- sudo apt-get install -y --no-install-recommends clang g++ gcc gcc-multilib libc6-dev libc6-dev-i386 mingw-w64 patch xz-utils
|
||||||
- cd ${HOME}
|
- cd ${HOME}
|
||||||
@ -138,7 +133,6 @@ jobs:
|
|||||||
install:
|
install:
|
||||||
- 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
|
||||||
- go get -v -t ./...
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd java
|
- cd java
|
||||||
- make
|
- make
|
||||||
|
Loading…
x
Reference in New Issue
Block a user