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