forked from rafeca/rafeca.github.com
/
.travis.yml
37 lines (32 loc) · 1.07 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
language: python
rvm: 2.6
env:
global:
secure: qw47wfZJRHLrKY0WXVn6OjUPUFJH1Dz4GyqeatpAhI8X/LNqGDBvv5fj1V18TkDzfiK3R8gpIspzk9Eqed54WRu0eAmYcOzY0JdsCgisivM3AzzVS8BIoYWnPTokIzQMvZZRraVVJvOtqPdwUlVBa2EhV72QXhIx3gon/1S1ywI=
branches:
only:
- master
install:
- bundle install
- pip install pygments
- rake emoji
before_script:
- rm -rf 2012 2013 2014 2015
- rm -f tag/*
- rake tags
- git config --global user.email "juandebravo@gmail.com"
- git config --global user.name "Juan de Bravo"
script:
- cp index.html.template index.html
- cp atom.xml.template atom.xml
- jekyll --no-safe
- cp index.html.template index.html.template.back
- cp atom.xml.template atom.xml.back
- cp -r _site/* .
- mv index.html.template.back index.html.template
- mv atom.xml.back atom.xml.template
- git add --all 2012 2013 2014 2015 tag atom.xml index.html
- git commit -am "Added new post"
after_success:
- git remote set-url origin https://${GH_TOKEN}@github.com/juandebravo/juandebravo.github.com.git
- git push origin master