diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2016-05-04 10:38:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-10 11:19:07 -0700 |
commit | b98712b9aa97f20a142ca3fcfd027c7b26642e3b (patch) | |
tree | 548fdcb0afb7ddd66b99b47efa97ed09f000eaa8 | |
parent | 90f7b16b3adc78d4bbabbd426fb69aa78c714f71 (diff) | |
download | git-b98712b9aa97f20a142ca3fcfd027c7b26642e3b.tar.gz |
travis-ci: build documentationls/travis-build-doc
Build documentation as separate Travis CI job to check for
documentation errors.
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | .travis.yml | 15 | ||||
-rwxr-xr-x | ci/test-documentation.sh | 14 |
2 files changed, 29 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 78e433ba71..55299bd2bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,21 @@ env: # t9816 occasionally fails with "TAP out of sequence errors" on Travis CI OS X - GIT_SKIP_TESTS="t9810 t9816" +matrix: + include: + - env: Documentation + os: linux + compiler: clang + addons: + apt: + packages: + - asciidoc + - xmlto + before_install: + before_script: + script: ci/test-documentation.sh + after_failure: + before_install: - > case "${TRAVIS_OS_NAME:-linux}" in diff --git a/ci/test-documentation.sh b/ci/test-documentation.sh new file mode 100755 index 0000000000..579d540d32 --- /dev/null +++ b/ci/test-documentation.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Perform sanity checks on documentation and build it. +# + +set -e + +make check-builtins +make check-docs +make doc + +test -s Documentation/git.html +test -s Documentation/git.xml +test -s Documentation/git.1 |