Skip to content

Commit

Permalink
ci: test on 2 latest Go version \w modules
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bezzubov <[email protected]>
  • Loading branch information
bzz committed Apr 9, 2019
1 parent effbdd9 commit 9512fb3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ language: go
go_import_path: github.com/src-d/enry

go:
- '1.12.x'
- '1.11.x'
- '1.10.x'
env:
global:
- GO_VERSION_FOR_JVM='1.11.x'
- GO111MODULE=on
matrix:
- ONIGURUMA=0
- ONIGURUMA=1
Expand All @@ -30,7 +31,7 @@ stages:

stage: test
install:
- if [[ -n "$ONIGURUMA" ]]; then tags="$tags oniguruma"; fi; go get -v -t --tags "$tags" ./...
- if [[ "${ONIGURUMA}" -gt 0 ]]; then export GO_TAGS='oniguruma'; fi;
script:
- make test-coverage
after_success:
Expand All @@ -53,7 +54,6 @@ jobs:
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)"
- go version
- echo $PWD; echo $GOPATH
- go get -v ./...
before_script:
- cd java
- make
Expand All @@ -64,7 +64,6 @@ jobs:
stage: release
install:
- go version
- go get -v -t ./...
script: make packages
deploy:
provider: releases
Expand All @@ -80,7 +79,6 @@ jobs:
stage: release
install:
- go version
- go get -v -t ./...
script: make linux-shared
deploy:
provider: releases
Expand All @@ -101,7 +99,6 @@ jobs:
- PATH="/$HOME/osxcross/bin:$PATH"
install:
- go version
- go get -v -t ./...
- 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
- cd ${HOME}
Expand Down Expand Up @@ -131,7 +128,6 @@ jobs:
install:
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)"
- go version
- go get -v -t ./...
before_script:
- cd java
- make
Expand Down

0 comments on commit 9512fb3

Please sign in to comment.