1sudo: false 2language: go 3go: 4- 1.6.x 5- 1.10.x 6- 1.x 7 8install: 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.5.1/protoc-3.5.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 15env: 16 - PATH=$HOME/protoc/bin:$PATH 17 18script: 19 - make all 20 - make regenerate 21 # TODO(tamird): When https://github.com/travis-ci/gimme/pull/130 is 22 # released, make this look for "1.x". 23 - if [[ "$TRAVIS_GO_VERSION" == 1.10* ]]; then 24 if [[ "$(git status --porcelain 2>&1)" != "" ]]; then 25 git status >&2; 26 git diff -a >&2; 27 exit 1; 28 fi; 29 echo "git status is clean."; 30 fi; 31 - make test 32