-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (35 loc) · 1.38 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
language: node_js
node_js:
- "10"
cache:
directories:
- node_modules
# set Environment Variables at configuration page
# env:
# -
install:
- npm install
before_script:
- npm test
script:
# Set Git config
- git config --global user.name "travis-ci"
- git config --global user.email "$GIT_EMAIL"
# build
- npm run crawler
# git
- git remote rm origin
# Add new "origin" with access token in the git URL for authentication
- git remote add origin https://${GH_TOKEN}@${GH_REF} > /dev/null 2>&1
# - git push -f origin gh-pages --quiet
- npm run deploy
# safelist
branches:
only:
- master
notifications:
slack:
rooms:
secure: KVvN9y/T8qmslFFL9s0IGSlsPHJLxohGDheX/jD7h5jVwfn7uzUOCNC3UdFanjgDJ8gLWImrbQpYHK1e85heFOnDR8YKGFDKrAEMejE1QdB9C5/1BHy3arZ9kYltc1BUmYx26j9VJNTlygvYd/+ggLsOsyHWjUAn6u3vC5/KzeSOY7yR9LdvE79THHXHMb9dD9kHUTMiqRu3kpe9+yqmx1+1f9kBtmoEhQkQRLJmMfLc4FELwjapsrWcBy8wsMyh78oJzNLicySnyLXkfZdoOzUZJXVaPxkj6WpVu2mBxLi9bhIaoBrTT64e5k6bCA901Yf1zxVcJEouYe8PDrlPjWB0IdedgTGRFtocF5z35y4pH07rNJ9fL10AMR+6DOPp6Tf0fHMDBbSn9aR/4orzevd7ssm1G9orP2rb/C7WfOYAMCO9B0EV0o1O+vHyHbS5ZYVQFy9GSO+/XzLttwM4xkjk8z7W9T3Kf2/1N1TJ6opZQH8Du4oScU8Pe3Fqm5VC811wZjOoh44gBKJlnOPfQVWTMVOanyvwjJQyzFHhe0s+wg5umdb4QvJfc3j7TirPnCyaD/RsrDrlkDWcfg1Dh8+OvTVSS8Wt4ED9b13E5+og2DDeu05aucuWQLjvJ+WH3pl4m+xajIsbidWCeNbGY9dK/ZcGgbGC8ogVwX9ENRY=
on_success: change
on_failure: always