summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-06-18 17:47:46 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-06-22 00:22:25 +0000
commit118178208e6aebea5b9c85edb752a50e82bb3144 (patch)
treed1e4e013c96feb07553eb5b9b7568186b885f8e1 /.gitlab-ci.yml
parent0d5193783cb24ece2c36c1830dc65358c6bd7424 (diff)
downloadxkeyboard-config-118178208e6aebea5b9c85edb752a50e82bb3144.tar.gz
tests: add a test to compile all xkb_symbols section with xkbcomp
Using pytest because it does a lot of the setup/tracing stuff for us. The test checks all symbols files and generates a list of tuples (layout, variant) from the files. That's then used in a generic-enough keymap to be fed to xkbcomp. Where xkbcomp fails we fail the test (and pytest will collect stdout/stderr/etc.) for us. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6f26f3b..3d5f675 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -130,3 +130,18 @@ layout_tests:
expire_in: 2 weeks
paths:
- $INSTDIR/xkeyboard-config-test.out
+
+keymap_tests:
+ extends: .default_setup
+ stage: test
+ script:
+ - pacman -S --noconfirm xorg-xkbcomp python-pytest
+ - export XKB_CONFIG_ROOT="$INSTDIR/share/X11/xkb"
+ - pytest --junitxml=results.xml
+ artifacts:
+ reports:
+ junit: results.xml
+ # use the installed tree from the make_install job
+ needs:
+ - job: make_install
+ artifacts: true