]> git.ipfire.org Git - thirdparty/git.git/blob - ci/test-documentation.sh
ci: install Asciidoctor in 'ci/install-dependencies.sh'
[thirdparty/git.git] / ci / test-documentation.sh
1 #!/usr/bin/env bash
2 #
3 # Perform sanity checks on documentation and build it.
4 #
5
6 . ${0%/*}/lib.sh
7
8 make check-builtins
9 make check-docs
10
11 # Build docs with AsciiDoc
12 make 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
18
19 rm -f stdout.log stderr.log
20 check_unignored_build_artifacts
21
22 # Build docs with AsciiDoctor
23 make clean
24 make USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
25 sed '/^GIT_VERSION = / d' stderr.log
26 ! test -s stderr.log
27 test -s Documentation/git.html
28 grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html
29
30 rm -f stdout.log stderr.log
31 check_unignored_build_artifacts
32
33 save_good_tree