ci: Make check-commit-log run again

It needs 'only: merge_request' to get the necessary env variables.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1567>
This commit is contained in:
Jonas Ådahl 2020-11-16 17:21:53 +01:00 committed by Marge Bot
parent d622960429
commit 8da1c192e6

View File

@ -6,6 +6,11 @@ stages:
- test - test
- coverage - coverage
.only_default: &only_default
only:
- merge_requests
- /^.*$/
check-commit-log: check-commit-log:
stage: review stage: review
variables: variables:
@ -18,6 +23,7 @@ check-commit-log:
- commit-message-junit-report.xml - commit-message-junit-report.xml
reports: reports:
junit: commit-message-junit-report.xml junit: commit-message-junit-report.xml
<<: *only_default
build-mutter: build-mutter:
stage: build stage: build
@ -30,6 +36,7 @@ build-mutter:
expire_in: 1 day expire_in: 1 day
paths: paths:
- build - build
<<: *only_default
build-without-opengl-and-glx: build-without-opengl-and-glx:
stage: build stage: build
@ -41,6 +48,7 @@ build-without-opengl-and-glx:
artifacts: artifacts:
paths: paths:
- build/meson-logs - build/meson-logs
<<: *only_default
build-without-native-backend-and-wayland: build-without-native-backend-and-wayland:
stage: build stage: build
@ -52,6 +60,7 @@ build-without-native-backend-and-wayland:
artifacts: artifacts:
paths: paths:
- build/meson-logs - build/meson-logs
<<: *only_default
test-mutter: test-mutter:
stage: test stage: test
@ -74,6 +83,7 @@ test-mutter:
when: always when: always
paths: paths:
- build - build
<<: *only_default
test-mutter-coverage: test-mutter-coverage:
stage: coverage stage: coverage
@ -88,6 +98,7 @@ test-mutter-coverage:
- build/meson-logs/coveragereport - build/meson-logs/coveragereport
coverage: '/^TOTAL.*\s+(\d+\%)$/' coverage: '/^TOTAL.*\s+(\d+\%)$/'
when: always when: always
<<: *only_default
can-build-gnome-shell: can-build-gnome-shell:
stage: test stage: test
@ -100,3 +111,4 @@ can-build-gnome-shell:
- .gitlab-ci/checkout-gnome-shell.sh - .gitlab-ci/checkout-gnome-shell.sh
- meson gnome-shell gnome-shell/build --prefix /usr -Dman=false - meson gnome-shell gnome-shell/build --prefix /usr -Dman=false
- ninja -C gnome-shell/build install - ninja -C gnome-shell/build install
<<: *only_default