-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
39 lines (32 loc) · 1.35 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
sudo: required
branches:
only:
- master # Name of the branch from which to publish
services:
- docker
before_install:
- mkdir -p output/amq7
- mkdir -p output/bpm/topics
- mkdir -p output/openjdk
- cp index.html output/
- cp -r bpm/shared/ output/bpm/topics/
- docker pull asciidoctor/docker-asciidoctor
script:
- docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-html-amq7 asciidoctor/docker-asciidoctor asciidoctor --destination-dir=/documents/output/amq7 --out-file=index.html amq7/master.adoc
- docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-html-bpm asciidoctor/docker-asciidoctor asciidoctor --destination-dir=/documents/output/bpm --out-file=index.html bpm/bxms-contributor-guide/public/master.adoc
- docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-html-openjdk asciidoctor/docker-asciidoctor asciidoctor --destination-dir=/documents/output/openjdk --out-file=index.html openjdk/master.adoc
after_error:
- docker logs asciidoc-to-html-amq7
- docker logs asciidoc-to-html-bpm
- docker logs asciidoc-to-html-openjdk
after_failure:
- docker logs asciidoc-to-html-amq7
- docker logs asciidoc-to-html-bpm
- docker logs asciidoc-to-html-openjdk
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN # Set in travis-ci.org dashboard
local_dir: output
on:
branch: master