Skip to content

Commit 5deca53

Browse files
committed
Merge branch 'ls/travis-build-doc' into maint
CI test was taught to build documentation pages. * ls/travis-build-doc: travis-ci: build documentation
2 parents f14acab + b98712b commit 5deca53

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
@@ -35,6 +35,21 @@ env:
3535
# t9816 occasionally fails with "TAP out of sequence errors" on Travis CI OS X
3636
- GIT_SKIP_TESTS="t9810 t9816"
3737

38+
matrix:
39+
include:
40+
- env: Documentation
41+
os: linux
42+
compiler: clang
43+
addons:
44+
apt:
45+
packages:
46+
- asciidoc
47+
- xmlto
48+
before_install:
49+
before_script:
50+
script: ci/test-documentation.sh
51+
after_failure:
52+
3853
before_install:
3954
- >
4055
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)