travis-ci: record and skip successfully built trees
[git/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
657343a6
LS
6. ${0%/*}/lib-travisci.sh
7
8gem install asciidoctor
b98712b9
LS
9
10make check-builtins
11make check-docs
b98712b9 12
159e6010 13# Build docs with AsciiDoc
505ad913
LS
14make --jobs=2 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
15! test -s stderr.log
b98712b9
LS
16test -s Documentation/git.html
17test -s Documentation/git.xml
18test -s Documentation/git.1
159e6010
LS
19grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
20
21# Build docs with AsciiDoctor
22make clean
505ad913
LS
23make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
24sed '/^GIT_VERSION = / d' stderr.log
25! test -s stderr.log
159e6010
LS
26test -s Documentation/git.html
27grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html
9cc2c76f
SG
28
29save_good_tree