From: Lars Schneider Date: Tue, 11 Apr 2017 08:33:07 +0000 (+0200) Subject: travis-ci: build documentation with AsciiDoc and Asciidoctor X-Git-Tag: v2.13.1~21^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=159e6010c2d586acea9704993971365a804ea1ce;p=thirdparty%2Fgit.git travis-ci: build documentation with AsciiDoc and Asciidoctor 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 Signed-off-by: Junio C Hamano --- diff --git a/.travis.yml b/.travis.yml index 591cc57b80..c26f3bf789 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,7 +69,7 @@ matrix: - asciidoc - xmlto before_install: - before_script: + before_script: gem install asciidoctor script: ci/test-documentation.sh after_failure: diff --git a/ci/test-documentation.sh b/ci/test-documentation.sh index 579d540d32..bf23b2caea 100755 --- a/ci/test-documentation.sh +++ b/ci/test-documentation.sh @@ -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 '