-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (41 loc) · 2.12 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
38
39
40
41
42
43
44
45
46
47
language: ruby
rvm:
- jruby
git:
depth: false
cache:
- bundler
- directories:
- /home/travis/.rvm/
before_install:
- mkdir -p output/v8/images
- mkdir -p output/v10/images
- mkdir -p output/cours/images
install:
- bundle config --local github.https true
- bundle --path=.bundle/gems --binstubs=.bundle/.bin
- cp common/course.css output/style.css
- cp common/stylesheets/asciidoctor.css output/default.css
- cp -R common/highlight .
script:
- bundle exec asciidoctor-revealjs -D output/v8 -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 v8/course.adoc
- bundle exec asciidoctor -D output/v8 v8/index.adoc -a linkcss -a stylesheet=../default.css
- bundle exec asciidoctor -D output/v8 v8/workshop.adoc -a linkcss -a stylesheet=../default.css
- bundle exec asciidoctor-revealjs -D output/v10 -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 v10/course.adoc
- bundle exec asciidoctor -D output/v10 v10/index.adoc -a linkcss -a stylesheet=../default.css
- bundle exec asciidoctor -D output/v10 v10/workshop.adoc -a linkcss -a stylesheet=../default.css
- 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/index.adoc
- bundle exec asciidoctor -D output index.adoc -a linkcss -a stylesheet=default.css
- bundle exec asciidoctor -D output/tp tp/index.adoc -a linkcss -a stylesheet=../default.css
after_success:
- cd output
- cp -R ../highlight .
- cp -R ../images v8
- cp -R ../images v10
- cp -R ../cours/images cours
- 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 "https://${GH_TOKEN}@${GH_REF}" master:gh-pages