travis-ci: parallelize documentation build
[git/gitster.git] / ci / test-documentation.sh
blob58962d668a8922921d3b3ba30a4bf4a223dae05a
1 #!/bin/sh
3 # Perform sanity checks on documentation and build it.
6 set -e
8 make check-builtins
9 make check-docs
11 # Build docs with AsciiDoc
12 make --jobs=2 doc
13 test -s Documentation/git.html
14 test -s Documentation/git.xml
15 test -s Documentation/git.1
16 grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
18 # Build docs with AsciiDoctor
19 make clean
20 make --jobs=2 USE_ASCIIDOCTOR=1 doc
21 test -s Documentation/git.html
22 grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html