mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
ci: multiple go versions in build matrix
Mostly affects enry-java release, now using 1.11 Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
parent
3499750785
commit
f42b68fe70
53
.travis.yml
53
.travis.yml
@ -2,21 +2,25 @@ sudo: false
|
|||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
language: go
|
language: go
|
||||||
go:
|
|
||||||
- '1.10.x'
|
|
||||||
|
|
||||||
go_import_path: gopkg.in/src-d/enry.v1
|
go_import_path: gopkg.in/src-d/enry.v1
|
||||||
|
|
||||||
|
go:
|
||||||
|
- '1.11.x'
|
||||||
|
- '1.10.x'
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- GO_VERSION_FOR_JVM='1.11.x'
|
||||||
|
matrix:
|
||||||
|
- ONIGURUMA=0
|
||||||
|
- ONIGURUMA=1
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libonig-dev
|
- libonig-dev
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- GO_VERSION='1.10.x'
|
|
||||||
- ONIGURUMA=0
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- name: test
|
- name: test
|
||||||
- name: release
|
- name: release
|
||||||
@ -24,24 +28,17 @@ stages:
|
|||||||
- name: publish
|
- name: publish
|
||||||
if: tag IS present
|
if: tag IS present
|
||||||
|
|
||||||
|
stage: test
|
||||||
|
install:
|
||||||
|
- if [[ -n "$ONIGURUMA" ]]; then tags="$tags oniguruma"; fi; go get -v -t --tags "$tags" ./...
|
||||||
|
script:
|
||||||
|
- make test-coverage
|
||||||
|
after_success:
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- &golang-unit-tests
|
- name: 'java unit-tests'
|
||||||
name: 'golang unitTests'
|
|
||||||
stage: test
|
|
||||||
install:
|
|
||||||
- gimme version
|
|
||||||
- if [ "$ONIGURUMA" == "1" ]; then tags="$tags oniguruma"; fi; go get -v -t --tags "$tags" ./...
|
|
||||||
script:
|
|
||||||
- make test-coverage
|
|
||||||
after_success:
|
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
|
||||||
|
|
||||||
- <<: *golang-unit-tests
|
|
||||||
name: 'golang unitTests, ONIGURUMA=1'
|
|
||||||
env: ONIGURUMA=1
|
|
||||||
|
|
||||||
- name: 'java unitTests'
|
|
||||||
stage: test
|
stage: test
|
||||||
language: scala
|
language: scala
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
@ -53,8 +50,7 @@ jobs:
|
|||||||
- export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1
|
- export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1
|
||||||
- cd ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1
|
- cd ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1
|
||||||
install:
|
install:
|
||||||
- gimme version
|
- 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 bash)"
|
|
||||||
- go version
|
- go version
|
||||||
- echo $PWD; echo $GOPATH
|
- echo $PWD; echo $GOPATH
|
||||||
- go get -v ./...
|
- go get -v ./...
|
||||||
@ -67,6 +63,7 @@ jobs:
|
|||||||
- name: 'linux packages'
|
- name: 'linux packages'
|
||||||
stage: release
|
stage: release
|
||||||
install:
|
install:
|
||||||
|
- go version
|
||||||
- go get -v -t ./...
|
- go get -v -t ./...
|
||||||
script: make packages
|
script: make packages
|
||||||
deploy:
|
deploy:
|
||||||
@ -82,6 +79,7 @@ jobs:
|
|||||||
- name: 'linux shared lib'
|
- name: 'linux shared lib'
|
||||||
stage: release
|
stage: release
|
||||||
install:
|
install:
|
||||||
|
- go version
|
||||||
- go get -v -t ./...
|
- go get -v -t ./...
|
||||||
script: make linux-shared
|
script: make linux-shared
|
||||||
deploy:
|
deploy:
|
||||||
@ -102,6 +100,7 @@ jobs:
|
|||||||
- 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}"
|
||||||
- PATH="/$HOME/osxcross/bin:$PATH"
|
- PATH="/$HOME/osxcross/bin:$PATH"
|
||||||
install:
|
install:
|
||||||
|
- go version
|
||||||
- go get -v -t ./...
|
- 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
|
||||||
@ -123,7 +122,7 @@ jobs:
|
|||||||
language: scala
|
language: scala
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
install:
|
install:
|
||||||
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION 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 gopkg.in/src-d/enry.v1/...
|
- go get -v gopkg.in/src-d/enry.v1/...
|
||||||
before_script:
|
before_script:
|
||||||
|
Loading…
Reference in New Issue
Block a user