-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (27 loc) · 978 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
33
34
if: branch = master
sudo: required
services:
- docker
before_install:
- mkdir -p output
- docker pull asciidoctor/docker-asciidoctor
script:
- docker run -v $TRAVIS_BUILD_DIR:/documents/ asciidoctor/docker-asciidoctor asciidoctor sslrules.adoc
- docker run -v $TRAVIS_BUILD_DIR:/documents/ asciidoctor/docker-asciidoctor asciidoctor-pdf sslrules.adoc
after_error:
- docker logs asciidoc-to-html
- docker logs asciidoc-to-pdf
after_failure:
- docker logs asciidoc-to-html
- docker logs asciidoc-to-pdf
after_script:
- git clone https://${GH_REF} --single-branch --branch gh-pages $TRAVIS_BUILD_DIR/gh-pages
- cd $TRAVIS_BUILD_DIR/gh-pages
- cp ../*.html ../*.pdf .
- mkdir -p images
- cp ../images/*.png images/
- git config user.name "TravisCI"
- git config user.email "build-pipeline@travis-ci.org"
- git add images *.html *.pdf
- git commit -m "Update GitHub Pages"
- git push "https://${GH_TOKEN}@${GH_REF}" gh-pages