Skip to content

Commit 51ab732

Browse files
jamesdanielsdavideast
authored andcommitted
tests(): Adding a test matrix and using the lockfile (#1536)
* Adding a test matrix and using the lockfile * PRs dont upgrade, all test canary but allow failure * Fix the test * Whoops, yarn add now
1 parent c47d209 commit 51ab732

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.travis.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,30 @@ cache:
1313
- "$HOME/.npm"
1414
- "$HOME/.cache"
1515

16+
env:
17+
- CANARY=false
18+
- CANARY=true
19+
20+
matrix:
21+
fast_finish: true
22+
allow_failures:
23+
- env: CANARY=true
24+
1625
branches:
1726
only:
1827
- master # otherwise pull requests get built twice
1928

2029
install:
21-
- yarn install
30+
- |
31+
if $CANARY; then
32+
yarn upgrade && yarn add firebase@canary
33+
else
34+
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
35+
yarn upgrade
36+
else
37+
yarn install --frozen-lockfile
38+
fi
39+
fi
2240
2341
script:
2442
- yarn run build

0 commit comments

Comments
 (0)