-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
32 lines (24 loc) · 946 Bytes
/
.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
branches:
only:
- master
language: python
install:
- sudo pip install -q pygments landslide jinja2 markdown
before_script:
- openssl des3 -d -a -in .travis/ssh_deploy_key.enc -k "$SSH_KEY_SECRET" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git remote add deploy [email protected]:SUPINFO-LWP/bootstrap-slides.git
- git config --global user.name "Adrien Brault"
- git config --global user.email [email protected]
script:
- sh -c "find . -name \"*.cfg\" -exec landslide {} \;"
after_script:
- git checkout --orphan gh-pages
- git rm -r --cached .
- git add -f *.html
- git commit -m "Deploy"
- git push deploy gh-pages -f
env:
global:
- secure: ! "Y+cAIgb2uUPmD9pkeW1B+QS2cJES8Kbp7BHcUl+yew/nly0pExLCaZXaJ7UJ\nDvMtznAzV14LrmrNymOWr0i93QxKIGCJYMT0OwlORTAq8VUbE19GVUXQp9zY\nV9CwZ29NDxpfuihObBg048moIX27O0iKQzqHpodeoN7KPgf+QcY="