-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
42 lines (34 loc) · 1.45 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
sudo: required
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
language: node_js
node_js:
- 8
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- npm install
- npm install -g angular-cli-ghpages
script:
- npm run test
- npm run e2e
- npm run build
- npm run build-ghpages
after_success:
- if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ] ; then angular-cli-ghpages --dir="dist-ghpages" --repo="https://${GH_TOKEN}@github.com/zurfyx/angular-custom-modal.git" --name="Sr. Travis" --email="[email protected]"; fi
before_deploy:
- cd dist
deploy:
provider: npm
email: [email protected]
api_key:
secure: "Yl5Yvv1ORo81KuKlL4irRQxnuqlRDlFaxRltiNV3LvUKFRDOlxPMOJLdTateCYk/DbO7dV3pAXv/KIfvPAfMkC61A7x7r9oAZEZb4aQWLJKBvhmlPAZTCNb3FuMoJgW7tR8yExgTrlerekjU3cfMbfkoGpgQjRWPUJillu8/YPamyP3m+KrTxRSPC7CZeERqbxdhJn8iJog35l9tTUc0rdWoevs6XkXCcr+2IJYPYcLLsldVcGoTAZrOkt3AqkrDGHElF/XPJKooH+pJRtiXnNPpYMscfd4YhdRcH/YagBt0YIQA6DN6B9D/3LTHKPu+5srjLG58+ayKBfhoPI6y3szt3JzXmeoaXKiOBxZvmlF6DSUn9FtjJM+lJzsps3awoJGlWjNqofrIuudCJ4GvSGOtpA7rRrfgdjqhoBFZpO8WUL9ObuJyso9nrqb5enkdrES7jLJnGbgsfUGRBZaIBThvvm7wiraw3DopDqTqt7owJNQiurnOpVg00/SEfSrGKLf2c+jR3YbbzQf3wsvCx7t442F7AP+C+/5QCZFG1Y/rR+0JBzqU07UTMtKIUeOiTOX86+gNdy0jvGw54wjCjZirkH0IDwSKW59OK+/WN10HJUhnrbmFPYyahpymj5PQcZW7zYZrChqflEGbzuhN2BGng5OntayjvcziZIZ7+yc="
on:
branch: master
skip_cleanup: true