khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 1 | language: go |
| 2 | |
| 3 | matrix: |
| 4 | include: |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 5 | - go: 1.12.x |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 6 | env: VET=1 GO111MODULE=on |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 7 | - go: 1.12.x |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 8 | env: RACE=1 GO111MODULE=on |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 9 | - go: 1.12.x |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 10 | env: RUN386=1 |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 11 | - go: 1.12.x |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 12 | env: GRPC_GO_RETRY=on |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 13 | - go: 1.11.x |
| 14 | env: GO111MODULE=on |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 15 | - go: 1.10.x |
| 16 | - go: 1.9.x |
| 17 | - go: 1.9.x |
| 18 | env: GAE=1 |
| 19 | |
| 20 | go_import_path: google.golang.org/grpc |
| 21 | |
| 22 | before_install: |
| 23 | - if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi |
| 24 | - if [[ -n "${RUN386}" ]]; then export GOARCH=386; fi |
| 25 | - if [[ "${TRAVIS_EVENT_TYPE}" = "cron" && -z "${RUN386}" ]]; then RACE=1; fi |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 26 | - if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]; then export VET_SKIP_PROTO=1; fi |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 27 | |
| 28 | install: |
| 29 | - try3() { eval "$*" || eval "$*" || eval "$*"; } |
| 30 | - try3 'if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make testdeps; fi' |
| 31 | - if [[ "${GAE}" = 1 ]]; then source ./install_gae.sh; make testappenginedeps; fi |
| 32 | - if [[ "${VET}" = 1 ]]; then ./vet.sh -install; fi |
| 33 | |
| 34 | script: |
| 35 | - set -e |
| 36 | - if [[ "${VET}" = 1 ]]; then ./vet.sh; fi |
| 37 | - if [[ "${GAE}" = 1 ]]; then make testappengine; exit 0; fi |
| 38 | - if [[ "${RACE}" = 1 ]]; then make testrace; exit 0; fi |
| 39 | - make test |