]> git.ipfire.org Git - thirdparty/git.git/blobdiff - ci/test-documentation.sh
travis-ci: build documentation with AsciiDoc and Asciidoctor
[thirdparty/git.git] / ci / test-documentation.sh
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