forked from firebase/firebase-js-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (53 loc) · 1.47 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
node_js:
- 8
cache: yarn
# Define global C++ compiler version
env:
global:
- CXX=g++-4.8
before_install:
# Yarn defaults to an old version, make sure we
# get an up to date version
- npm install -g [email protected]
- '[ "${NPM_TOKEN+x}" ] && echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > $HOME/.npmrc || echo "Skipping .npmrc creation";'
before_script:
- cp config/ci.config.json config/project.json
# Misc Addons/Configs
dist: trusty
sudo: required
addons:
apt:
sources:
- google-chrome
- ubuntu-toolchain-r-test
packages:
- google-chrome-stable
- g++-4.8
matrix:
fast_finish: true
jobs:
allow_failures:
- script: yarn test:saucelabs
- script: yarn test:saucelabs --database-firestore-only
include:
- stage: test
script: xvfb-run yarn test
after_success: yarn test:coverage
env: '#= chrome headless test'
- stage: test
script: yarn test:saucelabs
env: '#= cross browser test: all packages except database and firestore'
if: type = push
- stage: test
script: yarn test:saucelabs --database-firestore-only
env: '#= cross browser test: database and firestore (allow_failures)'
if: type = push
- stage: deploy
script: skip
# NPM Canary Build Config
deploy:
skip_cleanup: true
provider: script
script: yarn release --canary
if: type = push AND repo = firebase/firebase-js-sdk AND branch = master