.gitlab-ci.yml 756 Bytes
Newer Older
1 2 3 4
image: registry.gitlab.gnome.org/gnome/mutter/master:v1

stages:
 - build
Jonas Ådahl's avatar
Jonas Ådahl committed
5
 - test
6 7 8 9

build-mutter:
  stage: build
  script:
10
    - meson . build -Dbuildtype=debugoptimized -Degl_device=true -Dwayland_eglstream=true --werror
11 12
    - ninja -C build
    - ninja -C build install
13 14 15 16
  artifacts:
    expire_in: 1 day
    paths:
      - build
Jonas Ådahl's avatar
Jonas Ådahl committed
17 18 19

test-mutter:
  stage: test
20 21
  dependencies:
    - build-mutter
22 23 24
  variables:
    XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
    GSETTINGS_SCHEMA_DIR: "$CI_PROJECT_DIR/build/data"
Jonas Ådahl's avatar
Jonas Ådahl committed
25
  script:
26 27
    - mkdir -m 700 $XDG_RUNTIME_DIR
    - glib-compile-schemas $GSETTINGS_SCHEMA_DIR
28 29 30
    - >
      dbus-run-session -- xvfb-run -s '+iglx -noreset'
      meson test -C build --no-rebuild -t 10 --verbose --no-stdsplit --wrap catchsegv