1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

build tests: check that Github pages can be built successfully

This commit is contained in:
Luca Boccassi 2021-05-19 14:45:47 +01:00 committed by Lennart Poettering
parent 2adcf6f4f7
commit 2d4efd1dba
2 changed files with 16 additions and 0 deletions

View File

@ -6,6 +6,7 @@ ADDITIONAL_DEPS=(
clang
expect
fdisk
jekyll
libfdisk-dev
libfido2-dev
libp11-kit-dev

View File

@ -3501,6 +3501,21 @@ meson.add_install_script('sh', '-c', 'touch $DESTDIR@0@'.format(prefixdir))
############################################################
# Ensure that changes to the docs/ directory do not break the
# basic Github pages build. But only run it in developer mode,
# as it might be fragile due to changes in the tooling, and it is
# not generally useful for users.
jekyll = find_program('jekyll', required : false)
if get_option('mode') == 'developer' and want_tests != 'false' and jekyll.found()
test('github-pages',
jekyll,
args : ['build',
'--source', join_paths(project_source_root, 'docs'),
'--destination', join_paths(project_build_root, '_site')])
endif
############################################################
check_help = find_program('tools/check-help.sh')
foreach exec : public_programs