forked from jaywcjlove/FED
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
57 lines (46 loc) · 1.16 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
branches:
only:
- master
os:
- linux
language: node_js
dist: trusty
sudo: required
node_js:
- "node"
cache: npm
before_install:
- curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
- echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-3.0" | sudo tee -a /etc/apt/sources.list
- sudo add-apt-repository -y ppa:dhor/myway
- sudo apt-get -qq update
- sudo apt-get -y install graphicsmagick
- sudo apt-get -y install imagemagick
install:
- rm -rf node_modules
- npm install
env:
global:
- GH_REF: github.com/wilon/wilon.github.io.git
script:
# git settings
- git config --global user.name "Travis CI"
- git config --global user.email "[email protected]"
- git remote set-url origin https://${GH_TOKEN}@${GH_REF}
- git checkout master
# update
- npm start
- git show | grep 'Author.*<travis@' || gulp sitemap
after_script:
# commit
- ls -l cache/index.html index.html
- cat cache/*.json
- git add .
- git commit -m "Travis CI Auto Commit" &
- git push --force origin master
notifications:
email:
recipients:
on_success: never
on_failure: never