forked from angular/angularfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 841 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
46
47
language: node_js
sudo: false
node_js:
- 'lts/*'
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 build
- |
./node_modules/.bin/karma start --single-run --browsers ChromeHeadlessTravis --reporters mocha &&
yarn test:node &&
node tools/run-typings-test.js &&
bash ./test/ng-build/build.sh