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