You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
828 B

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