forked from angular/angularfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 854 Bytes
/
.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
language: node_js
sudo: false
node_js:
- 'node'
addons:
chrome: stable
cache:
yarn: true
directories:
- node_modules
- "$HOME/.npm"
- "$HOME/.cache"
env:
- CANARY=false
- CANARY=true
matrix:
fast_finish: true
allow_failures:
- env: CANARY=true
branches:
only:
- master # otherwise pull requests get built twice
install:
- |
if $CANARY; then
yarn upgrade && yarn add firebase@canary
else
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
yarn upgrade
else
yarn install --frozen-lockfile
fi
fi
script:
- yarn run build
- ./node_modules/.bin/karma start --single-run --browsers ChromeHeadlessTravis --reporters mocha
# Run integration test to make sure our typings are correct for user-land.
- node tools/run-typings-test.js