-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
34 lines (34 loc) · 1.04 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
language: ruby
rvm:
- 2.4.1
script: ./script/build.sh
branches:
only:
- master
before_script:
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
after_success:
- openssl aes-256-cbc -K $encrypted_8c0295a6c6f0_key -iv $encrypted_8c0295a6c6f0_iv -in .travis/deploy_rsa.enc -out .travis/deploy_rsa -d
- chmod 600 .travis/deploy_rsa
- eval `ssh-agent -s`
- ssh-add .travis/deploy_rsa
- rm -rf _deploy
- mkdir _deploy
- cd _deploy
- git clone https://github.com/ialisme/fed.ialis.me.git --branch=gh-pages .
- git remote add deploy [email protected]:ialisme/fed.ialis.me.git
- rsync -avzh ../_site/ ./
- git add .
- git config --global user.name "$GIT_NAME"
- git config --global user.email "$GIT_EMAIL"
- git commit -m "Deployed website updates via travis-ci."
- git push deploy gh-pages
notifications:
irc:
on_success: change
on_failure: change
channels:
- ircs://irc.random.sh:6667/#log
template:
- "%{repository}#%{build_number} (%{branch}) %{message} %{build_url}"
before_install: