-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (24 loc) · 1.77 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
sudo: required
services:
- docker
before_install:
- mkdir -p output
- docker pull binout/docker-asciidoctor-deckjs
script:
- docker run --rm -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-deckjs binout/docker-asciidoctor-deckjs asciidoctor -a conf=bdxjug -T /asciidoctor-backends/haml/deckjs -o /documents/output/slides-bdxjug.html slides.adoc
- docker run --rm -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-deckjs binout/docker-asciidoctor-deckjs asciidoctor -a conf=bdxio -T /asciidoctor-backends/haml/deckjs -o /documents/output/slides-bdxio.html slides.adoc
- docker run --rm -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-deckjs binout/docker-asciidoctor-deckjs asciidoctor -a conf=devfesttoulouse -T /asciidoctor-backends/haml/deckjs -o /documents/output/slides-devfesttoulouse.html slides.adoc
after_error:
- docker logs asciidoc-to-deckjs
after_failure:
- docker logs asciidoc-to-deckjs
after_success:
- cd output ; sed 's/"\/\/cdnjs/"https:\/\/cdnjs/' slides-bdxjug.html | sed 's/"http:\/\/cdnjs/"https:\/\/cdnjs/' > bdxjug.html ; cp -R ../images images
- cd output ; sed 's/"\/\/cdnjs/"https:\/\/cdnjs/' slides-bdxio.html | sed 's/"http:\/\/cdnjs/"https:\/\/cdnjs/' > bdxio.html ; cp -R ../images images
- cd output ; sed 's/"\/\/cdnjs/"https:\/\/cdnjs/' slides-devfesttoulouse.html | sed 's/"http:\/\/cdnjs/"https:\/\/cdnjs/' > devfesttoulouse.html ; cp -R ../images images
- mkdir deck.js ; curl -LkSs https://github.com/imakewebthings/deck.js/archive/1.1.0.tar.gz | tar xfz - -C deck.js --strip-components=1
- 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