-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (52 loc) · 1.37 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
58
59
60
61
62
63
64
git:
depth: 10
branches:
only:
- master
language: ruby
rvm:
- 2.4
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- GIT_NAME="Dylan M. Taylor"
- GIT_EMAIL="[email protected]"
matrix:
- NODE_VERSION=0.12
os:
- linux
sudo: false
install:
- gem install jekyll jekyll-feed jekyll-sass-converter liquid colorator kramdown mercenary rouge safe_yaml github-pages
before_script:
- python build_site.py
- cp -v interface/* blog/_includes/
- cd ./blog/
script: jekyll build
after_script:
- cd ..
- echo $GIT_NAME
- echo $GIT_EMAIL
- git config --global user.name "$GIT_NAME"
- git config --global user.email "$GIT_EMAIL"
- export REPO="https://"$GIT_TOKEN"@github.com/dylanmtaylor/dylanmtaylor.github.io.git"
- export REPO_NAME="dylanmtaylor.github.io"
- export TARGET_DIR=$(mktemp -d /tmp/$REPO_NAME.XXXX)
- export REV=$(git rev-parse HEAD)
- git clone --branch master ${REPO} ${TARGET_DIR}
- rsync -rvt --del --exclude=".git" /home/travis/build/dylanmtaylor/dylanmtaylor.github.io/ $TARGET_DIR
- cd $TARGET_DIR
- if [ "$(git status | grep 'modified:' | grep -v feed.xml | wc -l)" -gt "0" ]; then git add -A .; fi # Fix for feed updating forever bug
- git commit -m "Built from commit $REV"
- git push origin master
notifications:
email:
on_success: never
on_failure: change
addons:
apt:
packages:
- build-essential
- git
- ruby
- ruby-dev