Skip to content

Commit

Permalink
Conditionally stops checking if generated file are up-to-date
Browse files Browse the repository at this point in the history
Golang changed the way of gzip compression between go1.6.1 and 1.6.1+.
So the gzipped proto.FileDescriptorProto always have diff.
Thus we cannot assume that generated files have the same contents as the
ones regenerated in Travis CI.
  • Loading branch information
yugui committed Apr 18, 2016
1 parent 965b62d commit e09ec18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install:
- go get github.com/gengo/grpc-gateway/examples/server
script:
- make realclean && make examples
- test -z "$(git status --porcelain)" || (git status; git diff; exit 1)
- if ! go version | grep devel; then test -z "$(git status --porcelain)" || (git status; git diff; exit 1); fi
- env GLOG_logtostderr=1 go test -race -v github.com/gengo/grpc-gateway/...
- golint github.com/gengo/grpc-gateway/protoc-gen-grpc-gateway/...
- golint github.com/gengo/grpc-gateway/runtime/...
Expand Down

0 comments on commit e09ec18

Please sign in to comment.