2018-06-14 15:01:35 -04:00
|
|
|
image: registry.gitlab.gnome.org/gnome/mutter/master:v1
|
|
|
|
|
|
|
|
stages:
|
2019-02-05 12:19:43 -05:00
|
|
|
- review
|
2018-06-14 15:01:35 -04:00
|
|
|
- build
|
2018-08-17 08:15:29 -04:00
|
|
|
- test
|
2018-06-14 15:01:35 -04:00
|
|
|
|
2019-02-05 12:19:43 -05:00
|
|
|
check-commit-log:
|
|
|
|
stage: review
|
2019-04-24 06:24:12 -04:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: "100"
|
2019-02-05 12:19:43 -05:00
|
|
|
script:
|
|
|
|
- ./.gitlab-ci/check-commit-log.sh
|
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
|
2018-06-14 15:01:35 -04:00
|
|
|
build-mutter:
|
|
|
|
stage: build
|
|
|
|
script:
|
2019-01-23 04:41:34 -05:00
|
|
|
- meson . build -Dbuildtype=debugoptimized -Degl_device=true -Dwayland_eglstream=true --werror
|
2018-06-14 15:01:35 -04:00
|
|
|
- ninja -C build
|
|
|
|
- ninja -C build install
|
2019-01-23 07:28:38 -05:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 day
|
|
|
|
paths:
|
|
|
|
- build
|
2019-02-05 12:19:43 -05:00
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
- /^.*$/
|
2018-08-17 08:15:29 -04:00
|
|
|
|
|
|
|
test-mutter:
|
|
|
|
stage: test
|
2019-01-23 07:28:38 -05:00
|
|
|
dependencies:
|
|
|
|
- build-mutter
|
2019-01-23 18:24:32 -05:00
|
|
|
variables:
|
|
|
|
XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
|
|
|
|
GSETTINGS_SCHEMA_DIR: "$CI_PROJECT_DIR/build/data"
|
2018-08-17 08:15:29 -04:00
|
|
|
script:
|
2019-04-08 08:34:13 -04:00
|
|
|
- bash -x ./.gitlab-ci/run-tests.sh
|
2019-02-05 12:19:43 -05:00
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
- /^.*$/
|
2019-04-08 08:34:13 -04:00
|
|
|
artifacts:
|
|
|
|
reports:
|
|
|
|
junit: "build/${CI_JOB_NAME}-report.xml"
|
|
|
|
name: "mutter-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- "build/meson-logs"
|
|
|
|
- "build/${CI_JOB_NAME}-report.xml"
|