forked from firebase/firebase-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (38 loc) · 1.11 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
language: node_js
node_js:
- "8"
- "10"
before_install:
- npm i -g 'npm@>=6.9.0'
before_script:
- npm install --package-lock-only
- "git diff --exit-code -- package-lock.json || (echo 'Error: package-lock.json is changed during npm install! Please make sure to use npm >= 6.9.0 and commit package-lock.json.' && false)"
after_script:
- nyc report --reporter=text-lcov | coveralls
jobs:
include:
- stage: Integration Tests
if: repo == head_repo OR type == push
node_js: "8"
env:
- TEST_NAME="Hosting Functional Tests"
before_script:
- echo "==== ${TEST_NAME} ===="
- ./scripts/decrypt-app-credentials.sh
script:
- ./scripts/test-hosting.sh
after_script: skip
- stage: Integration Tests
if: repo == head_repo OR type == push
node_js: "8"
env:
- TEST_NAME="Emulator End-to-End Tests"
before_script:
- echo "==== ${TEST_NAME} ===="
- ./scripts/decrypt-app-credentials.sh
script:
- ./scripts/test-triggers-end-to-end.sh
after_script: skip
cache:
directories:
- node_modules