Skip to content

Commit 21fba07

Browse files
committed
add protoc-go-gen dependencies
1 parent d536dda commit 21fba07

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ before_script:
1717
# let's use protobuf
1818
script:
1919
- $HOME/protobuf/bin/protoc --java_out=./ ./core/*.proto ./api/*.proto
20-
- $HOME/protobuf/bin/protoc --go_out=./ ./core/*.proto
21-
- $HOME/protobuf/bin/protoc --go_out=./ ./api/*.proto
22-
- $HOME/protobuf/bin/protoc --grpc-gateway_out=logtostderr=true:./ ./api/*.proto
20+
- $HOME/protobuf/bin/protoc I. -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=./ ./core/*.proto
21+
- $HOME/protobuf/bin/protoc I. -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=./ ./api/*.proto
22+
- $HOME/protobuf/bin/protoc I. -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_out=logtostderr=true:./ ./api/*.proto
2323

2424
- ls -l

install-googleapis.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/sh
22
set -e
3+
4+
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
5+
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
6+
go get -u github.com/golang/protobuf/protoc-gen-go
7+
38
wget http://central.maven.org/maven2/com/google/api/grpc/googleapis-common-protos/0.0.3/googleapis-common-protos-0.0.3.jar
49
jar xvf googleapis-common-protos-0.0.3.jar
510
cp -r google/ $HOME/protobuf/include/

0 commit comments

Comments
 (0)