Skip to content

Commit

Permalink
travis-ci: build documentation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
larsxschneider authored and gitster committed May 10, 2016
1 parent 90f7b16 commit b98712b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions 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

0 comments on commit b98712b

Please sign in to comment.