mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
f63b69bb23
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
34 lines
794 B
YAML
34 lines
794 B
YAML
image: registry.gitlab.gnome.org/gnome/mutter/master:v1
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
|
|
build-mutter:
|
|
stage: build
|
|
script:
|
|
- meson . build -Dbuildtype=debugoptimized -Degl_device=true -Dwayland_eglstream=true --werror
|
|
- ninja -C build
|
|
- ninja -C build install
|
|
artifacts:
|
|
expire_in: 1 day
|
|
paths:
|
|
- build
|
|
|
|
test-mutter:
|
|
stage: test
|
|
dependencies:
|
|
- build-mutter
|
|
artifacts:
|
|
paths:
|
|
- build
|
|
variables:
|
|
XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
|
|
GSETTINGS_SCHEMA_DIR: "$CI_PROJECT_DIR/build/data"
|
|
script:
|
|
- mkdir -m 700 $XDG_RUNTIME_DIR
|
|
- glib-compile-schemas $GSETTINGS_SCHEMA_DIR
|
|
- >
|
|
dbus-run-session -- xvfb-run -s '+iglx -noreset'
|
|
meson test -C build --no-rebuild -t 10 --verbose --no-stdsplit --wrap catchsegv
|