summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-26 13:17:25 -0700
committerJunio C Hamano <gitster@pobox.com>2016-05-26 13:17:25 -0700
commit5deca53908fa0ecd7e0d557d8e65c3206887556f (patch)
treed9b06a65910a286bbeb3989d662c58f221a3b7fc
parentf14acabf3ac8147d800017160d67e8192fe1ee80 (diff)
parentb98712b9aa97f20a142ca3fcfd027c7b26642e3b (diff)
downloadgit-5deca53908fa0ecd7e0d557d8e65c3206887556f.tar.gz
Merge branch 'ls/travis-build-doc' into maint
CI test was taught to build documentation pages. * ls/travis-build-doc: travis-ci: build documentation
-rw-r--r--.travis.yml15
-rwxr-xr-xci/test-documentation.sh14
2 files changed, 29 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 1fdcec8437..adab5b89bb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,6 +35,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