[mutter] ci: Use ci-fairy image in review and run first



commit 07c64ded78530a0f4700fcd11e1bd2e30e39b2b2
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Nov 20 17:56:31 2020 +0100

    ci: Use ci-fairy image in review and run first
    
    This image is much smaller than the one with all the build dependencies,
    thus will finish much faster.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1586>

 .gitlab-ci.yml | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2fc14bd2b7..d5d8ce5ae8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,10 @@
 include:
-  - remote: 
'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/97556201e6e0e30554ee93249f5287be826be718/templates/fedora.yml'
+  - remote: 
"https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/97556201e6e0e30554ee93249f5287be826be718/templates/fedora.yml";
+  - remote: 
"https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/97556201e6e0e30554ee93249f5287be826be718/templates/ci-fairy.yml";
 
 stages:
- - prepare
  - review
+ - prepare
  - build
  - test
  - coverage
@@ -62,15 +63,15 @@ build-fedora-container:
     - .fdo.container-build@fedora@x86_64
     - .mutter.fedora:33
   stage: prepare
+  needs:
+    - check-commit-log
+    - check-merge-request
   <<: *only_default
 
 check-commit-log:
   extends:
-    - .fdo.distribution-image@fedora
-    - .mutter.fedora:33
+    - .fdo.ci-fairy
   stage: review
-  needs:
-    - build-fedora-container
   variables:
     GIT_DEPTH: "100"
   script:
@@ -88,7 +89,7 @@ build-mutter:
     - .mutter.fedora:33
   stage: build
   needs:
-    - check-commit-log
+    - build-fedora-container
   script:
     - meson . build -Dbuildtype=debugoptimized -Db_coverage=true -Degl_device=true -Dwayland_eglstream=true 
--werror --prefix /usr
     - ninja -C build
@@ -104,7 +105,7 @@ build-without-opengl-and-glx:
     - .mutter.fedora:33
   stage: build
   needs:
-    - check-commit-log
+    - build-fedora-container
   script:
     - meson . build -Dbuildtype=debugoptimized -Dopengl=false -Dglx=false -Degl_device=true 
-Dwayland_eglstream=true --werror --prefix /usr
     - ninja -C build
@@ -119,7 +120,7 @@ build-without-native-backend-and-wayland:
     - .mutter.fedora:33
   stage: build
   needs:
-    - check-commit-log
+    - build-fedora-container
   script:
     - meson . build -Dbuildtype=debugoptimized -Dnative_backend=false -Dudev=false -Dwayland=false 
-Dcore_tests=false --werror --prefix /usr
     - ninja -C build


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]