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