-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (39 loc) · 926 Bytes
/
.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
#.travis.yml
os:
- linux
services:
- docker
language: node_js
node_js:
- "7.8"
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
branches:
only:
- master
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# - sudo apt-get update
# - sudo apt-get install -y libappindicator1 fonts-liberation
# - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# - sudo dpkg -i google-chrome*.deb
before_script:
- npm install -g firebase-tools
- npm install -g @angular/cli
# script: ng test --watch=false && ng e2e && ng build --prod #this actually works like a charm.
script: ng build --prod
# - ng e2e
# after_script:
# - ng build --prod
after_success:
- firebase deploy --token $FIREBASE_TOKEN
notifications:
email:
on_failure: change
on_success: always