forked from improbable-eng/grpc-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (68 loc) · 2.19 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: go
go:
- "1.11"
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:
global:
# GLOBAL_TESTSERVER is used to skip starting the testserver in run-with-testserver.sh
- GLOBAL_TESTSERVER=true
- SEPARATE_TEST_SUITES=true
- PROTOTOOL_VER=1.7.0
matrix:
- BROWSER=nodejs
- BROWSER=firefox53_osx
- BROWSER=firefox39_osx
- BROWSER=firefox38_osx
- BROWSER=firefox21_osx
- BROWSER=chrome_57
- BROWSER=chrome_52
- BROWSER=chrome_43
- BROWSER=chrome_41
# Edge does not support aborting fetch requests (documented known limitation in project README)
- BROWSER=edge15_win DISABLE_ABORT_TESTS=true
- BROWSER=edge14_win DISABLE_ABORT_TESTS=true
- BROWSER=edge13_win DISABLE_ABORT_TESTS=true
# Browsers that do not support trusting self-signed certs for wss:// connections are disabled (see https://github.com/improbable-eng/grpc-web/issues/165)
- BROWSER=ie11_win DISABLE_WEBSOCKET_TESTS=true
- BROWSER=safari11 DISABLE_WEBSOCKET_TESTS=true
- BROWSER=safari9_1 DISABLE_WEBSOCKET_TESTS=true
- BROWSER=safari8 DISABLE_WEBSOCKET_TESTS=true
cache:
directories:
- node_modules
branches:
only:
- master
before_install:
- sudo apt-get install unzip
- true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJfU1RBQ0tfVVNFUk5BTUU9aW1wcm9iYWJsZWVuZ2JvdDEK`
- true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJfU1RBQ0tfQUNDRVNTX0tFWT1SRG1Cc2pwQUJ4RlljcEVkeVp5bwo=`
install:
- . ./install-prototool.sh
- go get -u golang.org/x/tools/cmd/goimports
- go get -u github.com/robertkrimen/godocdown/godocdown
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep ensure
- go install ./vendor/github.com/golang/protobuf/protoc-gen-go
- export PATH=/home/travis/gopath/src/github.com/improbable-eng/grpc-web/protobuf/bin:$PATH
- nvm install
- npm install
before_script:
- ./integration_test/start-testserver.sh &
script:
- npm run test:integration
stages:
- lint
- unit-test
- test
jobs:
include:
- stage: lint
script: ./lint-all.sh
- stage: unit-test
script: ./test-all.sh