-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
61 lines (51 loc) · 1.28 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: node_js
node_js: "10"
cache:
yarn: true
branches:
except:
- /^v\d/
before_install:
- npm install -g yarn
install:
- yarn install
jobs:
include:
- stage: lint & test
script:
- yarn run lint
- yarn run test
- stage: lighthouse test
script:
- yarn global add firebase-tools
- yarn run build
- firebase deploy --token $FIREBASE_TOKEN --project abdonrd-develop
- yarn run lh https://abdonrd-develop.firebaseapp.com
- stage: deploy to staging
script: yarn run build
deploy:
provider: firebase
token: $FIREBASE_TOKEN
skip_cleanup: true
project: abdonrd-develop
on:
branch: develop
- stage: deploy to production
script: yarn run build:production
deploy:
provider: firebase
token: $FIREBASE_TOKEN
skip_cleanup: true
project: project-8848054472830093819
on:
branch: master
stages:
- name: lint & test
- name: lighthouse test
if: type IN (pull_request)
- name: deploy to staging
if: branch = develop AND (NOT type IN (pull_request))
env: NODE_ENV=staging
- name: deploy to production
if: branch = master AND (NOT type IN (pull_request))
env: NODE_ENV=production