]> git.ipfire.org Git - thirdparty/git.git/blame - ci/test-documentation.sh
travis-ci: build documentation with AsciiDoc and Asciidoctor
[thirdparty/git.git] / ci / test-documentation.sh
CommitLineData
b98712b9
LS
1#!/bin/sh
2#
3# Perform sanity checks on documentation and build it.
4#
5
6set -e
7
8make check-builtins
9make check-docs
b98712b9 10
159e6010
LS
11# Build docs with AsciiDoc
12make doc
b98712b9
LS
13test -s Documentation/git.html
14test -s Documentation/git.xml
15test -s Documentation/git.1
159e6010
LS
16grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
17
18# Build docs with AsciiDoctor
19make clean
20make USE_ASCIIDOCTOR=1 doc
21test -s Documentation/git.html
22grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html