2020-04-03 17:18:28 -04:00
|
|
|
image: registry.gitlab.gnome.org/gnome/mutter/master:v4
|
2018-06-14 15:01:35 -04:00
|
|
|
|
|
|
|
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
|
2020-05-06 09:27:41 -04:00
|
|
|
- coverage
|
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
|
2020-08-04 11:40:24 -04:00
|
|
|
needs: []
|
2018-06-14 15:01:35 -04:00
|
|
|
script:
|
2020-05-06 09:27:41 -04:00
|
|
|
- meson . build -Dbuildtype=debugoptimized -Db_coverage=true -Degl_device=true -Dwayland_eglstream=true --werror --prefix /usr
|
2018-06-14 15:01:35 -04:00
|
|
|
- ninja -C build
|
|
|
|
- ninja -C build install
|
2019-01-23 07:28:38 -05:00
|
|
|
artifacts:
|
2019-06-22 10:55:08 -04:00
|
|
|
expire_in: 1 day
|
|
|
|
paths:
|
|
|
|
- build
|
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
- /^.*$/
|
|
|
|
|
2020-03-26 17:23:26 -04:00
|
|
|
build-without-opengl-and-glx:
|
|
|
|
stage: build
|
2020-08-04 11:40:24 -04:00
|
|
|
needs: []
|
2020-03-26 17:23:26 -04:00
|
|
|
script:
|
|
|
|
- meson . build -Dbuildtype=debugoptimized -Dopengl=false -Dglx=false -Degl_device=true -Dwayland_eglstream=true --werror --prefix /usr
|
|
|
|
- ninja -C build
|
|
|
|
- ninja -C build install
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-05-06 09:44:46 -04:00
|
|
|
- build/meson-logs
|
2020-03-26 17:23:26 -04:00
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
- /^.*$/
|
|
|
|
|
2019-10-09 04:42:35 -04:00
|
|
|
build-without-native-backend-and-wayland:
|
2019-06-22 10:55:08 -04:00
|
|
|
stage: build
|
2020-08-04 11:40:24 -04:00
|
|
|
needs: []
|
2019-06-22 10:55:08 -04:00
|
|
|
script:
|
2019-10-09 04:42:35 -04:00
|
|
|
- meson . build -Dbuildtype=debugoptimized -Dnative_backend=false -Dudev=false -Dwayland=false -Dcore_tests=false --werror --prefix /usr
|
2019-06-22 10:55:08 -04:00
|
|
|
- ninja -C build
|
|
|
|
- ninja -C build install
|
|
|
|
artifacts:
|
2019-01-23 07:28:38 -05:00
|
|
|
paths:
|
2020-05-06 09:44:46 -04:00
|
|
|
- build/meson-logs
|
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
|
2020-08-04 11:40:24 -04:00
|
|
|
needs: ["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"
|
2019-05-16 18:06:04 -04:00
|
|
|
G_SLICE: "always-malloc"
|
2019-05-15 19:41:17 -04:00
|
|
|
MALLOC_CHECK_: "3"
|
2019-05-20 12:40:34 -04:00
|
|
|
NO_AT_BRIDGE: "1"
|
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:
|
2020-10-27 15:29:54 -04:00
|
|
|
expire_in: 1 day
|
2019-04-08 08:34:13 -04:00
|
|
|
reports:
|
|
|
|
junit: "build/${CI_JOB_NAME}-report.xml"
|
|
|
|
name: "mutter-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
|
|
|
paths:
|
2020-10-27 15:29:54 -04:00
|
|
|
- build
|
2019-04-22 13:54:11 -04:00
|
|
|
|
2020-05-06 09:27:41 -04:00
|
|
|
test-mutter-coverage:
|
|
|
|
stage: coverage
|
|
|
|
dependencies:
|
|
|
|
- test-mutter
|
2020-08-04 11:40:24 -04:00
|
|
|
needs: ["test-mutter"]
|
2020-05-06 09:27:41 -04:00
|
|
|
script:
|
|
|
|
- ninja -C build coverage
|
|
|
|
- cat build/meson-logs/coverage.txt
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-10-27 15:29:54 -04:00
|
|
|
- build/meson-logs/coveragereport
|
|
|
|
coverage: '/^TOTAL.*\s+(\d+\%)$/'
|
|
|
|
when: always
|
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
- /^.*$/
|
2020-05-06 09:27:41 -04:00
|
|
|
|
2019-04-22 13:54:11 -04:00
|
|
|
can-build-gnome-shell:
|
|
|
|
stage: test
|
|
|
|
dependencies:
|
|
|
|
- build-mutter
|
2020-08-04 11:40:24 -04:00
|
|
|
needs: ["build-mutter"]
|
2019-04-22 13:54:11 -04:00
|
|
|
before_script:
|
|
|
|
- meson install --no-rebuild -C build
|
|
|
|
script:
|
|
|
|
- .gitlab-ci/checkout-gnome-shell.sh
|
2019-08-21 16:30:41 -04:00
|
|
|
- meson gnome-shell gnome-shell/build --prefix /usr -Dman=false
|
2019-04-22 13:54:11 -04:00
|
|
|
- ninja -C gnome-shell/build install
|
|
|
|
only:
|
|
|
|
- merge_requests
|
|
|
|
- /^.*$/
|