mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
gitlab-ci: Define exported global variables once
Don't redefine XDG runtime and gsettings schema paths multiple times, just export the variables once and reuse them. https://gitlab.gnome.org/GNOME/mutter/merge_requests/408
This commit is contained in:
parent
a54f9e835c
commit
f63b69bb23
@ -22,11 +22,12 @@ test-mutter:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build
|
- build
|
||||||
|
variables:
|
||||||
|
XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
|
||||||
|
GSETTINGS_SCHEMA_DIR: "$CI_PROJECT_DIR/build/data"
|
||||||
script:
|
script:
|
||||||
- glib-compile-schemas $PWD/build/data
|
- mkdir -m 700 $XDG_RUNTIME_DIR
|
||||||
- mkdir -m 700 $PWD/runtime-dir
|
- glib-compile-schemas $GSETTINGS_SCHEMA_DIR
|
||||||
- >
|
- >
|
||||||
env XDG_RUNTIME_DIR=$PWD/runtime-dir
|
|
||||||
GSETTINGS_SCHEMA_DIR=$PWD/build/data
|
|
||||||
dbus-run-session -- xvfb-run -s '+iglx -noreset'
|
dbus-run-session -- xvfb-run -s '+iglx -noreset'
|
||||||
meson test -C build --no-rebuild -t 10 --verbose --no-stdsplit --wrap catchsegv
|
meson test -C build --no-rebuild -t 10 --verbose --no-stdsplit --wrap catchsegv
|
||||||
|
Loading…
Reference in New Issue
Block a user