2018-10-24 06:15:06 -07:00
|
|
|
language: go
|
|
|
|
|
2019-01-15 06:32:05 -08:00
|
|
|
matrix:
|
|
|
|
include:
|
2020-10-08 00:26:01 -07:00
|
|
|
- go: 1.14.x
|
2019-01-15 06:32:05 -08:00
|
|
|
env: VET=1 GO111MODULE=on
|
2020-10-08 00:26:01 -07:00
|
|
|
- go: 1.14.x
|
2019-01-15 06:32:05 -08:00
|
|
|
env: RACE=1 GO111MODULE=on
|
2020-10-08 00:26:01 -07:00
|
|
|
- go: 1.14.x
|
2019-01-15 06:32:05 -08:00
|
|
|
env: RUN386=1
|
2020-10-08 00:26:01 -07:00
|
|
|
- go: 1.14.x
|
2019-01-15 06:32:05 -08:00
|
|
|
env: GRPC_GO_RETRY=on
|
2020-10-08 00:26:01 -07:00
|
|
|
- go: 1.14.x
|
2020-07-20 09:07:29 -07:00
|
|
|
env: TESTEXTRAS=1
|
2020-10-08 00:26:01 -07:00
|
|
|
- go: 1.13.x
|
|
|
|
env: GO111MODULE=on
|
2020-07-10 15:41:20 -07:00
|
|
|
- go: 1.12.x
|
2019-08-14 02:00:39 -07:00
|
|
|
env: GO111MODULE=on
|
2020-10-08 00:26:01 -07:00
|
|
|
- go: 1.11.x # Keep until interop tests no longer require Go1.11
|
2020-07-20 09:07:29 -07:00
|
|
|
env: GO111MODULE=on
|
2018-10-24 06:15:06 -07:00
|
|
|
|
|
|
|
go_import_path: google.golang.org/grpc
|
|
|
|
|
|
|
|
before_install:
|
2019-01-15 06:32:05 -08:00
|
|
|
- if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi
|
|
|
|
- if [[ -n "${RUN386}" ]]; then export GOARCH=386; fi
|
|
|
|
- if [[ "${TRAVIS_EVENT_TYPE}" = "cron" && -z "${RUN386}" ]]; then RACE=1; fi
|
2020-02-17 13:13:33 -08:00
|
|
|
- if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]; then export VET_SKIP_PROTO=1; fi
|
2019-01-15 06:32:05 -08:00
|
|
|
|
|
|
|
install:
|
|
|
|
- try3() { eval "$*" || eval "$*" || eval "$*"; }
|
|
|
|
- try3 'if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make testdeps; fi'
|
2020-11-19 06:02:19 -08:00
|
|
|
- if [[ -n "${GAE}" ]]; then source ./install_gae.sh; make testappenginedeps; fi
|
2020-02-17 13:13:33 -08:00
|
|
|
- if [[ -n "${VET}" ]]; then ./vet.sh -install; fi
|
2018-10-24 06:15:06 -07:00
|
|
|
|
|
|
|
script:
|
2019-01-15 06:32:05 -08:00
|
|
|
- set -e
|
2020-02-17 13:13:33 -08:00
|
|
|
- if [[ -n "${TESTEXTRAS}" ]]; then examples/examples_test.sh; interop/interop_test.sh; make testsubmodule; exit 0; fi
|
|
|
|
- if [[ -n "${VET}" ]]; then ./vet.sh; fi
|
2020-11-19 06:02:19 -08:00
|
|
|
- if [[ -n "${GAE}" ]]; then make testappengine; exit 0; fi
|
2020-02-17 13:13:33 -08:00
|
|
|
- if [[ -n "${RACE}" ]]; then make testrace; exit 0; fi
|
2019-01-15 06:32:05 -08:00
|
|
|
- make test
|