This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
47 lines (47 loc) · 1.83 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
language: node_js
node_js:
- 10.15.3
os:
- osx
notifications:
email: false
slack:
rooms:
- secure: fcmuyLTnHaC/KQA4KwJKJTuk7pk0/gbNcOJJ8p1lfLFt59ZSBezOKbatiJU6XuWH0y6zdKum8qnEIFfD5Iuj0PTKwzt1Miaep3w73kSo8UDxPQcb/TwNt5S+MOinPZrX21ZcTZ0N3iSB4l1RsgB6QlX6WkJd8sH2du4bjSFElzYz5P94G5qHVaotqWc6dhzbVZsQhUTFSEuzCQ1hxAWTJFSuJgJO7cqfxIYo0BWfiW1MOmIlKxbVxbhRKscQR4mWEFtW7eIkbCpk3zMPjnwIG1bOpMN5jbZXSGwWnK8GUUVwptf9NtRgZkC3B+ZVIwM69qkEZ4Pl/TUSwKQLulULeyQVb/OvZqPcCYuuSQye98620eJYPyqlHByYt35ImVI4hp/D3lB95lr29Ecj80A5RIrtgAkt81Id9cuxccuw8Ytu7+bMoaeRssTDWBLo/vDf0fFSgL1r/vG5RaabYcbPdcolsr2yG/3OLuW3sfx4FfuUigS8OMoRDWa63+aNS5mDo+5pWcXNoY4fJPUo1kTBnXXzWuqyFNYxqoljCFlE/o7zSsdJAzuS4iFhpNurZhcN7zEDQ8E1HqDuItuf595h9i++4lZN7JcRr83SRQxEse9HK+SuDxOG9Rqv6QDKIEFoWtUxgntmEumoh50s9NAojNPKkYI0IIXDwojaDt9mxlA=
on_success: always
template:
- "Repo %{repository_slug} %{result} build (<%{build_url}|#%{build_number}>) for commit (<%{compare_url}|%{commit}>) on branch %{branch}."
- "Execution time: %{duration}"
- "Message: %{message}"
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:
secure: $FIREBASE_TOKEN
project: "nwhacks-2019"
on:
branch: dev
- stage: Deploy
script: yarn generate:prod && echo "cmd-f.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