Skip to content

Commit 76f58d9

Browse files
committed
Configure Travis CI with browser integration test
1 parent f01fbec commit 76f58d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,26 @@ go:
99
cache:
1010
directories:
1111
- $HOME/local
12+
- ${TRAVIS_BUILD_DIR}/examples/browser/node_modules
1213
before_install:
1314
- ./.travis/build-protoc.sh 3.0.0-beta-3
1415
- ./.travis/install-swagger-codegen.sh 2.1.6
16+
- nvm install v6.1 && nvm use v6.1 && node --version
1517
- go get github.com/golang/lint/golint
1618
- go get github.com/dghubble/sling
1719
install:
1820
- go get github.com/gengo/grpc-gateway/protoc-gen-grpc-gateway
1921
- go get github.com/gengo/grpc-gateway/runtime
2022
- go get github.com/gengo/grpc-gateway/examples
2123
- go get github.com/gengo/grpc-gateway/examples/server
24+
before_script:
25+
- sh -c 'cd examples/browser && npm install'
2226
script:
2327
- make realclean && make examples SWAGGER_CODEGEN="java -jar $HOME/local/swagger-codegen-cli.jar"
2428
- if ! go version | grep devel; then test -z "$(git status --porcelain)" || (git status; git diff; exit 1); fi
2529
- env GLOG_logtostderr=1 go test -race -v github.com/gengo/grpc-gateway/...
2630
- make lint
31+
- sh -c 'cd examples/browser && gulp'
2732
env:
2833
global:
2934
- "PATH=$PATH:$HOME/local/bin"

0 commit comments

Comments
 (0)