diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-02-08 17:14:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-02-16 06:56:39 +0000 |
commit | 2c5b476c34f7524395a05fdca048155854ad308d (patch) | |
tree | faae5082da9309fcd4d827ef64511bfc063026bb /.gitlab-ci.yml | |
parent | fe277acfc4d344ea84c48f1215a5fa8c96674dfe (diff) | |
download | xkeyboard-config-2c5b476c34f7524395a05fdca048155854ad308d.tar.gz |
gitlab CI: route stderr/stdout into two different files
The tool prints to stderr for failures, stdout for success. So far we only
collected stdout but not stderr. For undefined keysyms we usually get lots of
failed keymaps and the log exceeds the gitlab limits.
Let's collect stdout and stderr as separate files instead, and save it as
artifacts on failure. We don't really care about the keymaps on success anyway
- no-one will look through gigabytes of keymaps in the hope of finding
something wrong.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ab316b..21a6376 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -185,17 +185,21 @@ layout_tests: - meson builddir -Denable-wayland=false -Denable-x11=false -Denable-docs=false -Dxkb-config-root="$INSTDIR/share/X11/xkb" - ninja -C builddir - echo Running test script - this will take several minutes - - ./builddir/xkeyboard-config-test "$INSTDIR/share/X11/xkb/rules/evdev.xml" > $INSTDIR/xkeyboard-config-test.out - - ./builddir/xkeyboard-config-test "$INSTDIR/share/X11/xkb/rules/evdev.extras.xml" >> $INSTDIR/xkeyboard-config-test.out + - ./builddir/xkeyboard-config-test "$INSTDIR/share/X11/xkb/rules/evdev.xml" > $INSTDIR/xkeyboard-config-test.stdout 2> $INSTDIR/xkeyboard-config-test.stderr + - ./builddir/xkeyboard-config-test "$INSTDIR/share/X11/xkb/rules/evdev.extras.xml" >> $INSTDIR/xkeyboard-config-test.stdout 2>> $INSTDIR/xkeyboard-config-test.stderr - popd > /dev/null - - xz -z "$INSTDIR/xkeyboard-config-test.out" + after_script: + - xz -z "$INSTDIR/xkeyboard-config-test.stdout" + - xz -z "$INSTDIR/xkeyboard-config-test.stderr" variables: GIT_STRATEGY: none artifacts: + when: on_failure name: xkeyboard-config test output expire_in: 2 weeks paths: - - $INSTDIR/xkeyboard-config-test.out.xz + - $INSTDIR/xkeyboard-config-test.stdout.xz + - $INSTDIR/xkeyboard-config-test.stderr.xz keymap_tests: extends: .default_setup |