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