blob: fd650b2cff510fdabd4e19b8cf519ac58581231c [file] [log] [blame]
Herbie Ong1fb8fd32017-06-20 16:04:58 -07001sudo: false
2language: go
3go:
Joe Tsai75dceb12018-11-05 12:10:48 -08004- 1.9.x
Tamir Dubersteinbfa84002018-02-21 17:28:13 -05005- 1.10.x
Harald Nordgren5e707b22018-10-21 08:58:23 +02006- 1.11.x
Tamir Dubersteinbfa84002018-02-21 17:28:13 -05007- 1.x
Herbie Ong1fb8fd32017-06-20 16:04:58 -07008
9install:
Joe Tsai58318802018-06-12 11:59:29 -070010 - go get -v -d google.golang.org/grpc
Herbie Ong6a1fa942017-06-22 13:25:51 -070011 - go get -v -d -t github.com/golang/protobuf/...
Joe Tsai882cf972018-11-19 16:18:57 -080012 - curl -L https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip -o /tmp/protoc.zip
Tamir Dubersteinbfa84002018-02-21 17:28:13 -050013 - unzip /tmp/protoc.zip -d "$HOME"/protoc
14 - mkdir -p "$HOME"/src && ln -s "$HOME"/protoc "$HOME"/src/protobuf
Herbie Ong1fb8fd32017-06-20 16:04:58 -070015
16env:
17 - PATH=$HOME/protoc/bin:$PATH
18
19script:
Tamir Dubersteinbfa84002018-02-21 17:28:13 -050020 - make all
21 - make regenerate
22 # TODO(tamird): When https://github.com/travis-ci/gimme/pull/130 is
23 # released, make this look for "1.x".
24 - if [[ "$TRAVIS_GO_VERSION" == 1.10* ]]; then
25 if [[ "$(git status --porcelain 2>&1)" != "" ]]; then
26 git status >&2;
27 git diff -a >&2;
28 exit 1;
29 fi;
30 echo "git status is clean.";
31 fi;
32 - make test