.travis.yml 1.3 KB

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