Git fork

Merge branch 'ps/ci-meson-check-build-docs'

CI update.

* ps/ci-meson-check-build-docs:
ci: perform build and smoke tests for Meson docs

+21 -6
+21 -6
ci/test-documentation.sh
··· 15 15 "$1" 16 16 } 17 17 18 + check_docs () { 19 + test -s "$1"/Documentation/git.html && 20 + test -s "$1"/Documentation/git.xml && 21 + test -s "$1"/Documentation/git.1 && 22 + grep "<meta name=\"generator\" content=\"$2 " "$1"/Documentation/git.html 23 + } 24 + 18 25 make check-builtins 19 26 make check-docs 20 27 ··· 23 30 cat stderr.raw 24 31 filter_log stderr.raw >stderr.log 25 32 test ! -s stderr.log 26 - test -s Documentation/git.html 27 - test -s Documentation/git.xml 28 - test -s Documentation/git.1 29 - grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html 33 + check_docs . AsciiDoc 30 34 31 35 rm -f stdout.log stderr.log stderr.raw 32 36 check_unignored_build_artifacts ··· 37 41 cat stderr.raw 38 42 filter_log stderr.raw >stderr.log 39 43 test ! -s stderr.log 40 - test -s Documentation/git.html 41 - grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html 44 + check_docs . Asciidoctor 42 45 43 46 rm -f stdout.log stderr.log stderr.raw 44 47 check_unignored_build_artifacts 48 + 49 + # Build docs with Meson and AsciiDoc 50 + meson setup build-asciidoc -Ddocs=html,man -Ddocs_backend=asciidoc 51 + meson compile -C build-asciidoc 52 + check_docs build-asciidoc AsciiDoc 53 + rm -rf build-asciidoc 54 + 55 + # Build docs with Meson and AsciiDoctor 56 + meson setup build-asciidoctor -Ddocs=html,man -Ddocs_backend=asciidoctor 57 + meson compile -C build-asciidoctor 58 + check_docs build-asciidoctor Asciidoctor 59 + rm -rf build-asciidoctor 45 60 46 61 save_good_tree