-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
36 lines (36 loc) · 888 Bytes
/
Copy path.travis.yml
File metadata and controls
36 lines (36 loc) · 888 Bytes
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:
- 10.15.3
notifications:
email: false
install:
- yarn install
jobs:
include:
- stage: "Lint, Test and Build"
- script: yarn lint && yarn test && yarn generate
- stage: "Staging"
- script: yarn generate:prod
deploy:
provider: firebase
skip_cleanup: true
token: $FIREBASE_TOKEN
project: "nwhacks-2019"
on:
branch: dev
- stage: Deploy
script: yarn generate:prod && echo "www.nwplus.io" >> dist/CNAME
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
local_dir: dist
on:
branch: master
stages:
- "Lint, Test and Build"
- name: Staging
if: branch = dev
- name: Deploy
if: branch = master