Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
add protoc-go-gen dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinker1991 committed Apr 13, 2018
1 parent d536dda commit 21fba07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ before_script:
# let's use protobuf
script:
- $HOME/protobuf/bin/protoc --java_out=./ ./core/*.proto ./api/*.proto
- $HOME/protobuf/bin/protoc --go_out=./ ./core/*.proto
- $HOME/protobuf/bin/protoc --go_out=./ ./api/*.proto
- $HOME/protobuf/bin/protoc --grpc-gateway_out=logtostderr=true:./ ./api/*.proto
- $HOME/protobuf/bin/protoc I. -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=./ ./core/*.proto
- $HOME/protobuf/bin/protoc I. -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=./ ./api/*.proto
- $HOME/protobuf/bin/protoc I. -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_out=logtostderr=true:./ ./api/*.proto

- ls -l
5 changes: 5 additions & 0 deletions install-googleapis.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh
set -e

go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
go get -u github.com/golang/protobuf/protoc-gen-go

wget http://central.maven.org/maven2/com/google/api/grpc/googleapis-common-protos/0.0.3/googleapis-common-protos-0.0.3.jar
jar xvf googleapis-common-protos-0.0.3.jar
cp -r google/ $HOME/protobuf/include/
Expand Down

0 comments on commit 21fba07

Please sign in to comment.