| env: VET=1 GO111MODULE=on |
| env: RACE=1 GO111MODULE=on |
| go_import_path: google.golang.org/grpc |
| - 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 |
| - if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]; then export VET_SKIP_PROTO=1; fi |
| - try3() { eval "$*" || eval "$*" || eval "$*"; } |
| - try3 'if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make testdeps; fi' |
| - if [[ -n "${GAE}" ]]; then source ./install_gae.sh; make testappenginedeps; fi |
| - if [[ -n "${VET}" ]]; then ./vet.sh -install; fi |
| - if [[ -n "${TESTEXAMPLES}" ]]; then examples/examples_test.sh; exit 0; fi |
| - if [[ -n "${VET}" ]]; then ./vet.sh; fi |
| - if [[ -n "${GAE}" ]]; then make testappengine; exit 0; fi |
| - if [[ -n "${RACE}" ]]; then make testrace; exit 0; fi |