-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
34 lines (34 loc) · 1.48 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
env:
global:
# - PRODUCT_TO_DEPLOY=none|web|chrome|all
# - FIREBASE_PROJECT=default|staging|prod
- PRODUCT_TO_DEPLOY=none
- FIREBASE_PROJECT=default
language: node_js
node_js:
- '10'
cache: yarn
jobs:
include:
- stage: test
script:
- yarn run lint
- yarn run test
- stage: deploy
if: env(PRODUCT_TO_DEPLOY) in (web, all)
name: 'Deploy web app to Firebase'
script:
- yarn run build
- yarn release
deploy:
provider: firebase
project: $FIREBASE_PROJECT
token:
secure: 'hrVxWzG76yv+gEv1STOb2jDNDBMvwAYwMQtTFIgl1EsGF5a8erXTsdCRSbSgQiQTeBoqhygGW9dChicCHHPVPP9+seyusGsGgaqpu6oQxJNkqFPBZ9sl3AX5F1C9g08j8owe68hqLhJfgIoRP8PBcMWIgTQC7e6Mg4X6+/KkL9VPBVbL3tnux+L2Uo5jT1D+LK/vHZ8uIS1Nrm5DXtUPCx1hFLSjuJRX4/Tl4Nn8Fr64X0nLd8skWTRPN5xBHoHXL85ZkQ7zBn3ZAywVvEBzxJBdv99hfVRcphnJ5pQCiyHDv6b2hwZV6w39QI+gzZlTsPEI17kWA+dgyGyp9zrnXJqXcMj60EdDw/SrI2O8yhZkMa15EMwWbn7JmaNkW5C0kzuwGbxCpsL1JRPFl3QovoqeXYrGNJ9IKkzRxIeU2ntztzvfG0si4vr/mcDOVJyiLqaR71qqM1jFxxBrKyEuDCWl0ClWv56FcWenARe2k+pzM4JiO56bzLnwCDp0YDdoSqhXhcKgxCk4FwZGEzAVo4igkFdhFM4yQ9HIWJOUP90EzKWI4ENrds/xpyh3et4t/nvH7pHlczZ45FxgFkQ4znVcDH2F3C7Di3ITXWM3EKb3I6Euwpe1x6XddrmdJUTIpYKsiQTPBsAYWK9f+vsFquXxXNxvVT0YGeoF036VDCQ='
skip_cleanup: true
on:
repo: ZenUml/web-sequence
all_branches: true
- if: env(PRODUCT_TO_DEPLOY) in (chrome, all)
name: 'Deploy chrome plugin'
script: echo "Deploy chrome plugin"