mirror of
https://github.com/brl/mutter.git
synced 2024-11-08 23:16:20 -05:00
e3d3df985f
This allows to catch errors better, as per MALLOC_CHECK_'s definition https://gitlab.gnome.org/GNOME/mutter/merge_requests/581
66 lines
1.4 KiB
YAML
66 lines
1.4 KiB
YAML
image: registry.gitlab.gnome.org/gnome/mutter/master:v2
|
|
|
|
stages:
|
|
- review
|
|
- build
|
|
- test
|
|
|
|
check-commit-log:
|
|
stage: review
|
|
variables:
|
|
GIT_DEPTH: "100"
|
|
script:
|
|
- ./.gitlab-ci/check-commit-log.sh
|
|
only:
|
|
- merge_requests
|
|
|
|
build-mutter:
|
|
stage: build
|
|
script:
|
|
- meson . build -Dbuildtype=debugoptimized -Degl_device=true -Dwayland_eglstream=true --werror --prefix /usr
|
|
- ninja -C build
|
|
- ninja -C build install
|
|
artifacts:
|
|
expire_in: 1 day
|
|
paths:
|
|
- build
|
|
only:
|
|
- merge_requests
|
|
- /^.*$/
|
|
|
|
test-mutter:
|
|
stage: test
|
|
dependencies:
|
|
- build-mutter
|
|
variables:
|
|
XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
|
|
GSETTINGS_SCHEMA_DIR: "$CI_PROJECT_DIR/build/data"
|
|
G_SLICE: "always-malloc"
|
|
MALLOC_CHECK_: "3"
|
|
NO_AT_BRIDGE: "1"
|
|
MALLOC_PERTURB_: "123"
|
|
script:
|
|
- dconf update
|
|
- 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 --print-errorlogs --wrap catchsegv
|
|
only:
|
|
- merge_requests
|
|
- /^.*$/
|
|
|
|
can-build-gnome-shell:
|
|
stage: test
|
|
dependencies:
|
|
- build-mutter
|
|
before_script:
|
|
- meson install --no-rebuild -C build
|
|
script:
|
|
- .gitlab-ci/checkout-gnome-shell.sh
|
|
- meson gnome-shell gnome-shell/build --prefix /usr
|
|
- ninja -C gnome-shell/build install
|
|
only:
|
|
- merge_requests
|
|
- /^.*$/
|