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