.travis.yml 837 B

123456789101112131415161718192021222324252627282930313233
  1. sudo: false
  2. language: go
  3. go:
  4. - 1.9.x
  5. - 1.10.x
  6. - 1.11.x
  7. - 1.12.x
  8. - 1.x
  9. install:
  10. - go get -v -d google.golang.org/grpc
  11. - go get -v -d -t github.com/golang/protobuf/...
  12. - curl -L https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip -o /tmp/protoc.zip
  13. - unzip /tmp/protoc.zip -d "$HOME"/protoc
  14. - mkdir -p "$HOME"/src && ln -s "$HOME"/protoc "$HOME"/src/protobuf
  15. env:
  16. - PATH=$HOME/protoc/bin:$PATH
  17. script:
  18. - make all
  19. - make regenerate
  20. # TODO(tamird): When https://github.com/travis-ci/gimme/pull/130 is
  21. # released, make this look for "1.x".
  22. - if [[ "$TRAVIS_GO_VERSION" == 1.10* ]]; then
  23. if [[ "$(git status --porcelain 2>&1)" != "" ]]; then
  24. git status >&2;
  25. git diff -a >&2;
  26. exit 1;
  27. fi;
  28. echo "git status is clean.";
  29. fi;
  30. - make test