summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-11-26 12:59:49 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-11-26 13:45:43 +1000
commit77e49674e2344e2c6ffc4b76ec4d33f97a40a73e (patch)
tree52acff444c1d237ba53038b6eb559a3a955f19cf /.gitlab-ci.yml
parentcad889e050c8e5c800a2dfd0e33a71dcc80f8901 (diff)
downloadxkeyboard-config-77e49674e2344e2c6ffc4b76ec4d33f97a40a73e.tar.gz
gitlab CI: add an extra job to validate the installed XML files
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml12
1 files changed, 12 insertions, 0 deletions
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