-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
36 lines (36 loc) · 852 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
language: node_js
node_js:
- 12
notifications:
email: false
cache:
directories:
- node_modules
install:
- npm install
jobs:
include:
- stage: "Test & Build"
script: npm run test && npm run build
- stage: "Build & Deploy Staging"
script: npm run generate:stage
deploy:
provider: firebase
edge: true
skip_cleanup: true
token: $FIREBASE_TOKEN
project: bt-web-staging
- stage: "Build & Deploy Production"
script: npm run generate:prod
deploy:
provider: firebase
edge: true
skip_cleanup: true
token: $FIREBASE_TOKEN
project: bt-web-19a7b
stages:
- "Test & Build"
- name: "Build & Deploy Staging"
if: (branch = master) AND (type = push)
- name: "Build & Deploy Production"
if: (branch = prod) AND (type = push)