reset --hard: make use of the pretty machinery
[git/raj.git] / ci / test-documentation.sh
blob6214e6acb4a1acbc3eef764a8c610a5f6e100ee0
1 #!/usr/bin/env bash
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 > >(tee stdout.log) 2> >(tee stderr.log >&2)
13 ! test -s stderr.log
14 test -s Documentation/git.html
15 test -s Documentation/git.xml
16 test -s Documentation/git.1
17 grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
19 # Build docs with AsciiDoctor
20 make clean
21 make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
22 sed '/^GIT_VERSION = / d' stderr.log
23 ! test -s stderr.log
24 test -s Documentation/git.html
25 grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html