-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
25 lines (21 loc) · 1.08 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
language: ruby
before_install: mkdir -p output/cours output/tp
install:
- bundle config --local github.https true
- bundle --path=.bundle/gems --binstubs=.bundle/.bin
- cp common/course.css output/cours/style.css
- cp common/stylesheets/asciidoctor.css output/asciidoctor.css
script:
- bundle exec asciidoctor-revealjs -D output/cours -a revealjs_history=true -a revealjs_theme=white -a revealjs_slideNumber=true -a linkcss -a customcss=style.css -a revealjsdir=https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.8.0 cours/*.adoc
- bundle exec asciidoctor -D output README.adoc -a linkcss -a stylesheet=asciidoctor.css
- bundle exec asciidoctor -D output/tp tp/*.adoc -a linkcss -a stylesheet=../asciidoctor.css
after_success:
- cd output
- mv README.html index.html
- cp -R ../cours/images cours
- cp -R ../tp/images tp
- git init
- git config user.name "${GH_USER_NAME}"
- git config user.email "{GH_USER_EMAIL}"
- git add . ; git commit -m "Deploy to GitHub Pages"
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1