| 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: |
| - PROTOBUF_VER="3.5.0" |
| # GLOBAL_TESTSERVER is used to skip starting the testserver in run-with-testserver.sh |
| - GLOBAL_TESTSERVER=true |
| - SEPARATE_TEST_SUITES=true |
| matrix: |
| - GOTEST=1 |
| - 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 |
| - . ./install-protobuf.sh |
| - true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJfU1RBQ0tfVVNFUk5BTUU9aW1wcm9iYWJsZWVuZ2JvdDEK` |
| - true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJfU1RBQ0tfQUNDRVNTX0tFWT1SRG1Cc2pwQUJ4RlljcEVkeVp5bwo=` |
| install: |
| - 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: |
| - travis_retry npm run test |
| |
| stages: |
| - lint |
| - test |
| - deploy |
| |
| jobs: |
| include: |
| - stage: lint |
| script: ./lint-all.sh |
| - stage: deploy |
| if: tag =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/ |
| script: echo Releasing $TRAVIS_TAG |