forked from roof12/grpc-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.4 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: go
go:
- 1.8
go_import_path: github.com/improbable-eng/grpc-web
addons:
hosts:
# These must match the hosts defined in test/hosts-config.ts
- testhost
- corshost
env:
- PROTOBUF_VER="3.2.0"
cache:
directories:
- node_modules
before_install:
- sudo apt-get install unzip
- bash install-protobuf.sh
- true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJfU1RBQ0tfVVNFUk5BTUU9aW1wcm9iYWJsZWVuZ2JvdDEK`
- true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJfU1RBQ0tfQUNDRVNTX0tFWT1xTGJxUjE2azhqdFducVh2RmlvZwo=`
install:
- export PATH=/home/travis/gopath/src/github.com/improbable-eng/grpc-web/protobuf/bin:$PATH
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 6
- go get github.com/sirupsen/logrus
- go get github.com/grpc-ecosystem/go-grpc-prometheus
- go get github.com/mwitkow/go-conntrack
- go get github.com/mwitkow/go-conntrack/connhelpers
- go get github.com/mwitkow/go-grpc-middleware
- go get github.com/mwitkow/go-grpc-middleware/logging/logrus
- go get github.com/mwitkow/grpc-proxy/proxy
- go get github.com/prometheus/client_golang/prometheus/promhttp
- go get github.com/spf13/pflag
- go get github.com/rs/cors
- go get github.com/golang/protobuf/protoc-gen-go
- go get github.com/stretchr/testify
- npm install
script:
- npm run test