.travis.yml 779 B

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