From 77e49674e2344e2c6ffc4b76ec4d33f97a40a73e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 26 Nov 2019 12:59:49 +1000 Subject: gitlab CI: add an extra job to validate the installed XML files Signed-off-by: Peter Hutterer --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 03b5139..1b008e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,6 +59,18 @@ make_distcheck: variables: MAKE_EXTRA_COMMAND: "distcheck" +xmllint: + image: archlinux/base + dependencies: ['make_install'] + needs: ['make_install'] + stage: test + before_script: + - pacman -S --refresh + - pacman -S --sysupgrade --noconfirm + - pacman -S --noconfirm libxml2 + script: + - xmllint --dtdvalid "$INSTDIR/share/X11/xkb/rules/xkb.dtd" $INSTDIR/share/X11/xkb/rules/*.xml > /dev/null + # download libxkbcommon and run its layout test program. This will # run a basic keymap compile test against every combination of # layout/variant/option. Syntax errors will fail the test, check the -- cgit v1.2.1