diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-01-18 14:05:41 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-03-24 07:10:22 +1000 |
commit | 2a0c538c518becc49aedd66dc21460418af1dcd8 (patch) | |
tree | b909fe8ac42d912c12244ff45718a1fdd8240b15 /.gitlab-ci.yml | |
parent | 5ca9f8aea2876fe6926fc27f564d36eaf5ca5c8d (diff) | |
download | xkeyboard-config-2a0c538c518becc49aedd66dc21460418af1dcd8.tar.gz |
gitlab CI: check for new XF86 keysyms in the xorgproto repo
xorgproto 2021.2 and later has a recognizable pattern for adding new keysyms
to XF86keysym.h based on the Linux kernel input-event-codes.h. Use this to
detect any keysyms that are present in the header file but not yet in
symbols/inet.
This is merely a gitlab CI job as we only have to do an actual update once
every few months or so. A git diff is sufficient here too, it contains all the
information we will need to understand what is missing from the updated file.
We check xorgproto master because that gives us some heads-up on what will
come. There is a minor chance that we are mapping keycodes that change before
the release but it's minor and fixable anyway.
Requires: https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/merge_requests/23
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ec7b4fb..085a644 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -178,6 +178,27 @@ evdev keycode check: - keycodes/evdev needs: ['container-prep'] + +# Checks for new keysyms to be added to symbols/inet (using xorgproto master) +evdev keysym check (xorgproto master): + extends: + - .default_setup + stage: test + script: + # Check out the latest xorgproto tag + - git clone https://gitlab.freedesktop.org/xorg/proto/xorgproto + - .gitlab-ci/generate-evdev-keysyms.py --header xorgproto/include/X11/XF86keysym.h + - git diff --exit-code || (echo "New keysyms available, please update symbols/inet" && false) + allow_failure: true + artifacts: + when: on_failure + name: Updated inet keysyms + expire_in: 2 weeks + paths: + - symbols/inet + needs: ['container-prep'] + + xmllint: extends: - .default_setup |