Skip to content

Commit f00735b

Browse files
author
Robert Kratky
authored
Merge pull request #19 from rkratky/add-travis-ci
Add travis CI
2 parents 4526a60 + b13b7d6 commit f00735b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
sudo: required
2+
3+
branches:
4+
only:
5+
- master
6+
7+
services:
8+
- docker
9+
10+
before_install:
11+
- mkdir -p output
12+
- docker pull asciidoctor/docker-asciidoctor
13+
14+
script:
15+
- docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-html asciidoctor/docker-asciidoctor asciidoctor --destination-dir=/documents/output --out-file=index.html asciidoc-markup-sample-doc/asciidoc-markup-samples.adoc
16+
17+
after_error:
18+
- docker logs asciidoc-to-html
19+
- docker logs asciidoc-to-pdf
20+
21+
after_failure:
22+
- docker logs asciidoc-to-html
23+
- docker logs asciidoc-to-pdf
24+
25+
deploy:
26+
provider: pages
27+
skip_cleanup: true
28+
github_token: $GH_TOKEN
29+
local_dir: output
30+
on:
31+
branch: master

0 commit comments

Comments
 (0)