Skip to content

Commit b98712b

Browse files
larsxschneidergitster
authored andcommitted
travis-ci: build documentation
Build documentation as separate Travis CI job to check for documentation errors. Signed-off-by: Lars Schneider <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 90f7b16 commit b98712b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ env:
3232
# t9816 occasionally fails with "TAP out of sequence errors" on Travis CI OS X
3333
- GIT_SKIP_TESTS="t9810 t9816"
3434

35+
matrix:
36+
include:
37+
- env: Documentation
38+
os: linux
39+
compiler: clang
40+
addons:
41+
apt:
42+
packages:
43+
- asciidoc
44+
- xmlto
45+
before_install:
46+
before_script:
47+
script: ci/test-documentation.sh
48+
after_failure:
49+
3550
before_install:
3651
- >
3752
case "${TRAVIS_OS_NAME:-linux}" in

ci/test-documentation.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
#
3+
# Perform sanity checks on documentation and build it.
4+
#
5+
6+
set -e
7+
8+
make check-builtins
9+
make check-docs
10+
make doc
11+
12+
test -s Documentation/git.html
13+
test -s Documentation/git.xml
14+
test -s Documentation/git.1

0 commit comments

Comments
 (0)