2017-04-26 22:15:44 +03:00
|
|
|
#!/usr/bin/env bash
|
2016-05-04 11:38:36 +03:00
|
|
|
#
|
|
|
|
# Perform sanity checks on documentation and build it.
|
|
|
|
#
|
|
|
|
|
2017-09-10 17:44:28 +03:00
|
|
|
. ${0%/*}/lib-travisci.sh
|
|
|
|
|
|
|
|
gem install asciidoctor
|
2016-05-04 11:38:36 +03:00
|
|
|
|
|
|
|
make check-builtins
|
|
|
|
make check-docs
|
|
|
|
|
2017-04-11 11:33:07 +03:00
|
|
|
# Build docs with AsciiDoc
|
2017-04-26 22:15:44 +03:00
|
|
|
make --jobs=2 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
|
|
|
|
! test -s stderr.log
|
2016-05-04 11:38:36 +03:00
|
|
|
test -s Documentation/git.html
|
|
|
|
test -s Documentation/git.xml
|
|
|
|
test -s Documentation/git.1
|
2017-04-11 11:33:07 +03:00
|
|
|
grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
|
|
|
|
|
|
|
|
# Build docs with AsciiDoctor
|
|
|
|
make clean
|
2017-04-26 22:15:44 +03:00
|
|
|
make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
|
|
|
|
sed '/^GIT_VERSION = / d' stderr.log
|
|
|
|
! test -s stderr.log
|
2017-04-11 11:33:07 +03:00
|
|
|
test -s Documentation/git.html
|
|
|
|
grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html
|