forked from ReactiveX/rxjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.94 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
language: node_js
sudo: false
addons:
sauce_connect:
# Update SAUCE_USERNAME / SAUCE_ACCESS_KEY in travis if necessary
# https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
# TODO: reenable saucelabs once we have update browser tests
# sauce_connect: true
cache:
timeout: 1000
directories:
- $HOME/.npm
env:
matrix:
- NODE_VER=8 FULL_VALIDATE=true
- NODE_VER=8 TSC_VERSION=2.8.*
- NODE_VER=8 TSC_VERSION=next
- NODE_VER=9
- NODE_VER=9 TSC_VERSION=2.8.*
- NODE_VER=9 TSC_VERSION=next
- NODE_VER=10
- NODE_VER=10 TSC_VERSION=2.8.*
- NODE_VER=10 TSC_VERSION=next
matrix:
fast_finish: true
allow_failures:
- NODE_VER=8 TSC_VERSION=2.8.*
- NODE_VER=8 TSC_VERSION=next
- NODE_VER=9 TSC_VERSION=2.8.*
- NODE_VER=9 TSC_VERSION=next
- NODE_VER=10 TSC_VERSION=2.8.*
- NODE_VER=10 TSC_VERSION=next
before_install:
- nvm install $NODE_VER
- npm install -g npm@6 && node -v && npm -v
install:
- npm ci
- if [ "$FULL_VALIDATE" == "true" ]; then npm run lint && npm run dtslint && npm run test:circular; fi
script:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- if [ "$FULL_VALIDATE" == "true" ] && [ -n "DANGER_GITHUB_API_TOKEN" ]; then echo {} > ./.babelrc && npx danger; fi
- npm test
- npm run test:systemjs
- if [ "${TSC_VERSION}" ]; then npm install --no-save typescript@$TSC_VERSION && ./node_modules/.bin/tsc --version && npm run build_cjs ; fi
- if [ "$FULL_VALIDATE" == "true" ] && [ -n "DANGER_GITHUB_API_TOKEN" ]; then cd docs_app && npm ci && npm run build && cd ..; fi
after_success:
- if [ "$FULL_VALIDATE" == "true" ]; then npm run test:cover && npx nyc report --reporter=text-lcov | npx coveralls; fi
- if [ "$FULL_VALIDATE" == "true" ]; then npm run tests2png && cd docs_app && chmod 755 scripts/deploy-to-firebase.sh && npm run deploy-production; fi