iamqizhao | 5d3ee6a | 2015-02-26 18:30:54 -0800 | [diff] [blame] | 1 | language: go |
| 2 | |
dfawley | 47d8591 | 2017-08-29 16:29:31 -0700 | [diff] [blame] | 3 | matrix: |
| 4 | include: |
Doug Fawley | 27096e8 | 2020-04-10 16:01:05 -0700 | [diff] [blame] | 5 | - go: 1.14.x |
dfawley | ba4eb68 | 2018-09-04 15:10:01 -0700 | [diff] [blame] | 6 | env: VET=1 GO111MODULE=on |
Doug Fawley | 27096e8 | 2020-04-10 16:01:05 -0700 | [diff] [blame] | 7 | - go: 1.14.x |
dfawley | ba4eb68 | 2018-09-04 15:10:01 -0700 | [diff] [blame] | 8 | env: RACE=1 GO111MODULE=on |
Doug Fawley | 27096e8 | 2020-04-10 16:01:05 -0700 | [diff] [blame] | 9 | - go: 1.14.x |
Menghan Li | 59dd9b3 | 2018-08-27 13:31:20 -0700 | [diff] [blame] | 10 | env: RUN386=1 |
Doug Fawley | 27096e8 | 2020-04-10 16:01:05 -0700 | [diff] [blame] | 11 | - go: 1.14.x |
Menghan Li | 59dd9b3 | 2018-08-27 13:31:20 -0700 | [diff] [blame] | 12 | env: GRPC_GO_RETRY=on |
Doug Fawley | 27096e8 | 2020-04-10 16:01:05 -0700 | [diff] [blame] | 13 | - go: 1.14.x |
Doug Fawley | 895b36d | 2019-12-04 15:55:45 -0800 | [diff] [blame] | 14 | env: TESTEXTRAS=1 |
Doug Fawley | 27096e8 | 2020-04-10 16:01:05 -0700 | [diff] [blame] | 15 | - go: 1.13.x |
Doug Fawley | 1950dc9 | 2019-09-27 09:48:01 -0700 | [diff] [blame] | 16 | env: GO111MODULE=on |
Doug Fawley | 27096e8 | 2020-04-10 16:01:05 -0700 | [diff] [blame] | 17 | - go: 1.12.x |
Doug Fawley | 73e5679 | 2019-06-04 11:19:23 -0700 | [diff] [blame] | 18 | env: GO111MODULE=on |
Doug Fawley | 8bec2f5 | 2020-07-31 11:00:10 -0700 | [diff] [blame] | 19 | - go: 1.11.x # Keep until interop tests no longer require Go1.11 |
| 20 | env: GO111MODULE=on |
Tamir Duberstein | 8ab0d24 | 2016-07-26 15:25:04 -0400 | [diff] [blame] | 21 | |
| 22 | go_import_path: google.golang.org/grpc |
Chris Broadfoot | 785723e | 2016-03-24 13:48:16 -0700 | [diff] [blame] | 23 | |
iamqizhao | 4af0b51 | 2015-09-25 14:30:24 -0700 | [diff] [blame] | 24 | before_install: |
dfawley | ba4eb68 | 2018-09-04 15:10:01 -0700 | [diff] [blame] | 25 | - if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi |
| 26 | - if [[ -n "${RUN386}" ]]; then export GOARCH=386; fi |
| 27 | - if [[ "${TRAVIS_EVENT_TYPE}" = "cron" && -z "${RUN386}" ]]; then RACE=1; fi |
Menghan Li | 4b07105 | 2020-04-29 09:40:14 -0700 | [diff] [blame] | 28 | - if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]; then export VET_SKIP_PROTO=1; fi |
dfawley | f3361fd | 2018-07-06 11:09:40 -0700 | [diff] [blame] | 29 | |
| 30 | install: |
Doug Fawley | dc3d58f | 2018-10-11 13:07:48 -0700 | [diff] [blame] | 31 | - try3() { eval "$*" || eval "$*" || eval "$*"; } |
| 32 | - try3 'if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make testdeps; fi' |
Garrett Gutierrez | 35afeb6 | 2020-08-27 11:04:57 -0700 | [diff] [blame] | 33 | - if [[ -n "${GAE}" ]]; then source ./install_gae.sh; make testappenginedeps; fi |
Menghan Li | 6c48774 | 2019-11-05 10:34:44 -0800 | [diff] [blame] | 34 | - if [[ -n "${VET}" ]]; then ./vet.sh -install; fi |
iamqizhao | 773bcae | 2015-10-02 11:09:57 -0700 | [diff] [blame] | 35 | |
iamqizhao | 5d3ee6a | 2015-02-26 18:30:54 -0800 | [diff] [blame] | 36 | script: |
dfawley | f3361fd | 2018-07-06 11:09:40 -0700 | [diff] [blame] | 37 | - set -e |
ZhenLian | 829af01 | 2020-10-27 09:58:31 -0700 | [diff] [blame^] | 38 | - if [[ -n "${TESTEXTRAS}" ]]; then examples/examples_test.sh; security/advancedtls/examples/examples_test.sh; interop/interop_test.sh; make testsubmodule; exit 0; fi |
Menghan Li | 6c48774 | 2019-11-05 10:34:44 -0800 | [diff] [blame] | 39 | - if [[ -n "${VET}" ]]; then ./vet.sh; fi |
Garrett Gutierrez | 35afeb6 | 2020-08-27 11:04:57 -0700 | [diff] [blame] | 40 | - if [[ -n "${GAE}" ]]; then make testappengine; exit 0; fi |
Menghan Li | 6c48774 | 2019-11-05 10:34:44 -0800 | [diff] [blame] | 41 | - if [[ -n "${RACE}" ]]; then make testrace; exit 0; fi |
dfawley | f3361fd | 2018-07-06 11:09:40 -0700 | [diff] [blame] | 42 | - make test |