-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (56 loc) · 1.94 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
62
63
64
65
66
67
68
69
language: node_js
node_js:
- 8.11.3
sudo: required
dist: trusty
cache:
yarn: true
notifications:
slack: tlmader:TCHb5sywLfnNrFRdTvmfdYTQ
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- yarn global add @angular/cli
- yarn global add firebase-tools
- yarn global add codecov
- yarn install
script:
- yarn run test:ci
- yarn run lint
- yarn run build:develop
after_success:
- codecov
before_deploy:
- if [[ "$TRAVIS_BRANCH" = "master" ]]; then yarn run build:develop; fi
- if [[ -n "$TRAVIS_TAG" ]]; then yarn run build:staging; fi
deploy:
# Deploy master to the develop environment
- provider: firebase
skip_cleanup: true
token:
secure: "$FIREBASE_TOKEN"
project: cerberus-develop
message: App successfully deployed to cerberus-develop.
on:
branch: master
# Deploy tags to the staging environment
- provider: firebase
skip_cleanup: true
token:
secure: "$FIREBASE_TOKEN"
project: cerberus-staging
message: App successfully deployed to cerberus-staging.
on:
tags: true
env:
global:
secure: VcrSJ6FrObyICocTKMVsMOLaU12tCIRvVhKzZlB780AYV9NajdZ0hUBJfFAIFMAPl6msQzEMMQHxoI+IgihZt17qcFsn2iJ82G4JrFdV+1jKpbaqV2Z5RCm/qw7ui8422ZKO8UL0+RasUe5C2w8psUTG4H+qimW2Y9kpzi4It8Ux/goNAif844FaH2gWFpfZNBtn3TLRl9xvRMt9FaQ3LF2AWnJ+mUpo7TFkzBz5nkIRXwGIbq6uD4vLUjhv8MXMB3Nkv2pVIbBHBZ0Um/r/RzAWk5uxW+UIpa7MBHA9G37Ila+kUXhSZl+y4sC2lvx7JAoepm5CiqlMP/G4ZdB10TqTj9zN6sseILw3n1HP0AuBr2cbyhyCI7SI9/OFg9RxU8/uIgqrxSaTjYV1JHC14zFGiXUnN3kKLWWmamOfhOjidujCy9qjZn+G28kA/5K0+HRNgT9UKv4gqdS0CXxCSfrPsKdpcaVZShy3gArAy9xnWTDI/IHOQktSYNbqT5YEbWoNib3fKre6QGBWpU8kYieYKMz04rfAT/3Pdnkqa7N1RKeZhO84IHcJMkTG8ohfvjdoQ/rHkqkKd3zqmr1p6QnpoSkk7AybO10ydhKie+T3oO2sQ1si5rp3WjzeI/uj0ybOaLldMi+2U0XzY+t/SEutsnOJTxTkZmtNt9HNn3M=