]> git.ipfire.org Git - thirdparty/git.git/blame - ci/test-documentation.sh
sha1-file: split OBJECT_INFO_FOR_PREFETCH
[thirdparty/git.git] / ci / test-documentation.sh
CommitLineData
505ad913 1#!/usr/bin/env bash
b98712b9
LS
2#
3# Perform sanity checks on documentation and build it.
4#
5
c2160f2d 6. ${0%/*}/lib.sh
657343a6 7
b011fabd 8test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
657343a6 9gem install asciidoctor
b98712b9
LS
10
11make check-builtins
12make check-docs
b98712b9 13
159e6010 14# Build docs with AsciiDoc
eaa62291 15make doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
505ad913 16! test -s stderr.log
b98712b9
LS
17test -s Documentation/git.html
18test -s Documentation/git.xml
19test -s Documentation/git.1
159e6010
LS
20grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
21
b92cb86e
SG
22rm -f stdout.log stderr.log
23check_unignored_build_artifacts
24
159e6010
LS
25# Build docs with AsciiDoctor
26make clean
eaa62291 27make USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
505ad913
LS
28sed '/^GIT_VERSION = / d' stderr.log
29! test -s stderr.log
159e6010
LS
30test -s Documentation/git.html
31grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html
9cc2c76f 32
b92cb86e
SG
33rm -f stdout.log stderr.log
34check_unignored_build_artifacts
35
9cc2c76f 36save_good_tree