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

stages:
4
 - review
5
 - build
Jonas Ådahl's avatar
Jonas Ådahl committed
6
 - test
7

8 9 10 11 12 13 14
check-commit-log:
  stage: review
  script:
    - ./.gitlab-ci/check-commit-log.sh
  only:
    - merge_requests

15 16 17
build-mutter:
  stage: build
  script:
18
    - meson . build -Dbuildtype=debugoptimized -Degl_device=true -Dwayland_eglstream=true --werror
19 20
    - ninja -C build
    - ninja -C build install
21 22 23 24
  artifacts:
    expire_in: 1 day
    paths:
      - build
25 26 27
  only:
    - merge_requests
    - /^.*$/
Jonas Ådahl's avatar
Jonas Ådahl committed
28 29 30

test-mutter:
  stage: test
31 32
  dependencies:
    - build-mutter
33 34 35
  variables:
    XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
    GSETTINGS_SCHEMA_DIR: "$CI_PROJECT_DIR/build/data"
Jonas Ådahl's avatar
Jonas Ådahl committed
36
  script:
37 38
    - mkdir -m 700 $XDG_RUNTIME_DIR
    - glib-compile-schemas $GSETTINGS_SCHEMA_DIR
39 40 41
    - >
      dbus-run-session -- xvfb-run -s '+iglx -noreset'
      meson test -C build --no-rebuild -t 10 --verbose --no-stdsplit --wrap catchsegv
42 43 44
  only:
    - merge_requests
    - /^.*$/