ci: Use non-string like list for "need" relationships

Looks more natural, since it refers to another entity, not an arbitrary
string.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1586>
This commit is contained in:
Jonas Ådahl 2020-11-19 14:47:12 +01:00 committed by Marge Bot
parent a793b4eef5
commit efbb798309

View File

@ -69,7 +69,8 @@ check-commit-log:
- .fdo.distribution-image@fedora - .fdo.distribution-image@fedora
- .mutter.fedora:33 - .mutter.fedora:33
stage: review stage: review
needs: ["build-fedora-container"] needs:
- build-fedora-container
variables: variables:
GIT_DEPTH: "100" GIT_DEPTH: "100"
script: script:
@ -86,7 +87,8 @@ build-mutter:
- .fdo.distribution-image@fedora - .fdo.distribution-image@fedora
- .mutter.fedora:33 - .mutter.fedora:33
stage: build stage: build
needs: ["check-commit-log"] needs:
- check-commit-log
script: script:
- meson . build -Dbuildtype=debugoptimized -Db_coverage=true -Degl_device=true -Dwayland_eglstream=true --werror --prefix /usr - meson . build -Dbuildtype=debugoptimized -Db_coverage=true -Degl_device=true -Dwayland_eglstream=true --werror --prefix /usr
- ninja -C build - ninja -C build
@ -101,7 +103,8 @@ build-without-opengl-and-glx:
- .fdo.distribution-image@fedora - .fdo.distribution-image@fedora
- .mutter.fedora:33 - .mutter.fedora:33
stage: build stage: build
needs: ["check-commit-log"] needs:
- check-commit-log
script: script:
- meson . build -Dbuildtype=debugoptimized -Dopengl=false -Dglx=false -Degl_device=true -Dwayland_eglstream=true --werror --prefix /usr - meson . build -Dbuildtype=debugoptimized -Dopengl=false -Dglx=false -Degl_device=true -Dwayland_eglstream=true --werror --prefix /usr
- ninja -C build - ninja -C build
@ -115,7 +118,8 @@ build-without-native-backend-and-wayland:
- .fdo.distribution-image@fedora - .fdo.distribution-image@fedora
- .mutter.fedora:33 - .mutter.fedora:33
stage: build stage: build
needs: ["check-commit-log"] needs:
- check-commit-log
script: script:
- meson . build -Dbuildtype=debugoptimized -Dnative_backend=false -Dudev=false -Dwayland=false -Dcore_tests=false --werror --prefix /usr - meson . build -Dbuildtype=debugoptimized -Dnative_backend=false -Dudev=false -Dwayland=false -Dcore_tests=false --werror --prefix /usr
- ninja -C build - ninja -C build
@ -131,7 +135,8 @@ test-mutter:
stage: test stage: test
dependencies: dependencies:
- build-mutter - build-mutter
needs: ["build-mutter"] needs:
- build-mutter
variables: variables:
XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir" XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
GSETTINGS_SCHEMA_DIR: "$CI_PROJECT_DIR/build/data" GSETTINGS_SCHEMA_DIR: "$CI_PROJECT_DIR/build/data"
@ -156,7 +161,8 @@ test-mutter-coverage:
stage: coverage stage: coverage
dependencies: dependencies:
- test-mutter - test-mutter
needs: ["test-mutter"] needs:
- test-mutter
script: script:
- ninja -C build coverage - ninja -C build coverage
- cat build/meson-logs/coverage.txt - cat build/meson-logs/coverage.txt
@ -172,7 +178,8 @@ can-build-gnome-shell:
stage: test stage: test
dependencies: dependencies:
- build-mutter - build-mutter
needs: ["build-mutter"] needs:
- build-mutter
before_script: before_script:
- meson install --no-rebuild -C build - meson install --no-rebuild -C build
script: script: