]> git.ipfire.org Git - thirdparty/git.git/commitdiff
travis-ci: build documentation with AsciiDoc and Asciidoctor
authorLars Schneider <larsxschneider@gmail.com>
Tue, 11 Apr 2017 08:33:07 +0000 (10:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Apr 2017 00:27:56 +0000 (17:27 -0700)
ec3366e introduced a knob to enable the use of Asciidoctor in addition
to AsciiDoc. Build the documentation on TravisCI with this knob to
reduce the likeliness of breaking Asciidoctor support in the future.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.travis.yml
ci/test-documentation.sh

index 591cc57b80aa415be9c20b3c0dc746d792e68071..c26f3bf78983a58dd49272614fd3291f3fdbe549 100644 (file)
@@ -69,7 +69,7 @@ matrix:
           - asciidoc
           - xmlto
       before_install:
-      before_script:
+      before_script: gem install asciidoctor
       script: ci/test-documentation.sh
       after_failure:
 
index 579d540d32995715114f3b81ab5839800d9e006b..bf23b2caea7be580e3f60c94617a5381d765a24d 100755 (executable)
@@ -7,8 +7,16 @@ set -e
 
 make check-builtins
 make check-docs
-make doc
 
+# Build docs with AsciiDoc
+make doc
 test -s Documentation/git.html
 test -s Documentation/git.xml
 test -s Documentation/git.1
+grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
+
+# Build docs with AsciiDoctor
+make clean
+make USE_ASCIIDOCTOR=1 doc
+test -s Documentation/git.html
+grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html