-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (30 loc) · 834 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
language: node_js
node_js:
- node # will use latest node
sudo: required
dist: trusty
addons:
chrome: stable
branches:
only:
- master
before_script:
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
- npm install -g --silent @angular/cli
script: # the build step
- npm run prod:build
- ng build --prod --base-href "https://HackPoint.github.io/ng-apps/"
- npm test
- npm run testbe
notifications:
email: # only receive email when the build status changes (someone broke the build!)
on_failure: change
on_success: change
after_success:
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false"
notifications:
email:
on_success: always # default: change
on_failure: always # default: always