.travis.yml 517 B

12345678910111213141516171819202122232425
  1. language: go
  2. go:
  3. - 1.6.x
  4. - 1.7.x
  5. - 1.8.x
  6. - 1.9.x
  7. - 1.10.x
  8. matrix:
  9. include:
  10. - go: 1.10.x
  11. env: RUN386=1
  12. go_import_path: google.golang.org/grpc
  13. before_install:
  14. - if [[ -n "$RUN386" ]]; then export GOARCH=386; fi
  15. - if [[ "$TRAVIS_GO_VERSION" = 1.10* && "$GOARCH" != "386" ]]; then ./vet.sh -install || exit 1; fi
  16. script:
  17. - if [[ "$TRAVIS_GO_VERSION" = 1.10* && "$GOARCH" != "386" ]]; then ./vet.sh || exit 1; fi
  18. - make test || exit 1
  19. - if [[ "$GOARCH" != "386" ]]; then make testrace; fi