forked from yous/whiteglass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (26 loc) · 1.44 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
language: ruby
sudo: false
cache: bundler
rvm:
- 2.3.3
env:
global:
- secure: "IiTm3gexj2wKAf1TAWBIrece2tBAjw/1pED+2fZ1XB6N71zzu/9RGt5JHLJ5CoQY+frMUURblcmfqyGSz/6QFGfT/ZEj2Xuy/T6OkXqV8HlD96zVEaeCz3JJzIRUMEZZrN3tOw6gJF1YQExjWjltGy8RQKln3YoRMnNTSqi/ydRf8wY/dNWXnLxC08kBeoRqtnN1VWq4JgDS/JwGKJgA7mcKStkJR7B8lHI4yk3YAvK5eQBGYp+YjEJ9DG52JsrD5d5WWinOz9/FBFDdjVHfapLdfDTLSHvg/TBwL6r4+9o7F1B/1y+V8/3GX2uOvI4mySV2d0wN2ZHUFa2+wbZy9X3b4/Dv3r7ESKNEZTrNDEjL6ssE/yDlQLeGDAocjQKKjWz+idJqTNM3dJL1RpOEdd/xIIc6ICCm0RonHgFcJdleNE2zY86JjODZ0lhVBpB72PFV0rIgLLfyEo9VMMJNk910t2tbWSHze3uR0gutZQX14R+yLduvUd9fcNQjUfvj6DzM+3R8NpkeE0Kq2ry92+Q+mp7/9CtP/hjoPhOLPcVeTLCAzfIekW1IXBSujo/xMHl6OnF/XZFKDlNNYpEI8rStiQxJwKWe0AgoPsFnq3oqjiAzAFpfdA1RhZKG3Aznj9LR6iDoIkJy3myEX7IqY+wb2Qxt6aOJoOwkqiJjfMA="
before_install:
- gem update --system
- gem update --remote bundler
before_script:
- git config --global user.name "$(git --no-pager show --no-patch --format='%an')"
- git config --global user.email "$(git --no-pager show --no-patch --format='%ae')"
script:
- git clone -b gh-pages --depth 1 "https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git" _site >/dev/null 2>&1
- rm -rf _site/*
- bundle exec jekyll build
after_success:
- cd _site
- git add -A
- git commit -m "Updated to $(git rev-parse --short $TRAVIS_COMMIT) at $(date -u +'%Y-%m-%d %H:%M:%S %Z')"
- git push "https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git" gh-pages >/dev/null 2>&1
branches:
only:
- master