forked from pondevelopment/restful-api-guidelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 1.17 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
sudo: required
services:
- docker
before_install:
- mkdir -p output
- docker pull asciidoctor/docker-asciidoctor
script:
- ./check_rule_ids.sh > check_rule_ids_result
- docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-html asciidoctor/docker-asciidoctor asciidoctor -D /documents/output index.adoc
- docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-pdf asciidoctor/docker-asciidoctor asciidoctor-pdf -D /documents/output index.adoc
- docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoctor-epub3 asciidoctor/docker-asciidoctor asciidoctor-epub3 -D /documents/output index.adoc
- cp -r assets output/
- cp -r models/* output/
- cp -r -n legacy/* output/
- mv output/index.pdf output/pon-guidelines.pdf
- mv output/index.epub output/pon-guidelines.epub
- ./generate_rules_json.sh output
after_error:
- docker logs asciidoc-to-html
- docker logs asciidoc-to-pdf
- docker logs asciidoc-to-epub3
- cat check_rule_ids_result
after_failure:
- docker logs asciidoc-to-html
- docker logs asciidoc-to-pdf
- docker logs asciidoc-to-epub3
- cat check_rule_ids_result
after_success: ./travis_deploy.sh