forked from opencompany/www.opencompany.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 1.06 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
language: ruby
env:
global:
- secure: "jA/a4ASQfDnXmyag08A+vrZo7FHZs5aTs4Zc1rpeBEz0TXLzea5Z67TbU2U1n7prCmfKTuQhyZ1bcSN0kMTS8JJ/xxh5K9jutigT3GbG4dDrpgz6qqk6yedWfGRJVEgNaadS+1gnR7P3hBJ6/6i0GDCU+KlP8JvDYzJfXkKlH7Y="
script: bundle exec jekyll build
branches:
only:
- master
before_script:
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
after_success:
- rm -rf _deploy
- mkdir _deploy
- cd _deploy
- git clone https://github.com/opencompany/opencompany.github.io.git --branch=master .
- rsync -avzh ../_site/ ./
- git add .
- git config --global user.name "$GIT_NAME"
- git config --global user.email "$GIT_EMAIL"
- git commit -m "New site version. Committed by Travis-CI."
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- git push origin master
notifications:
irc:
on_success: change
on_failure: change
channels:
- irc.freenode.net##opencompany
template:
- '%{repository}#%{build_number} (%{branch}) %{message} %{build_url}'