[totem-pl-parser/wip/hadess/3.26.6: 3/5] ci: Split ABI checker from normal build target




commit 25bfafdb7ee1e55d8e74b4bfb98ec362df2bf82c
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jun 25 10:53:32 2021 +0200

    ci: Split ABI checker from normal build target

 .gitlab-ci.yml | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a4d04bd..7ee436c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,5 @@
+image: fedora:latest
+
 variables:
   DEPENDENCIES:
     redhat-rpm-config
@@ -22,7 +24,6 @@ variables:
   LAST_ABI_BREAK: "9ccc3c78a5a41b86bdd2c9fb63ad4963e65e4f63"
 
 build-fedora:
-  image: fedora:latest
   before_script:
     # Update
     - dnf -y update && dnf install -y $DEPENDENCIES
@@ -31,11 +32,15 @@ build-fedora:
     - dnf install -y $TEST_DEPS
     - GIO_USE_VOLUME_MONITOR=unix dbus-run-session ninja -C _build test
     - ninja -C _build install
-    # ABI check, the deps are needed to build the old version of totem-pl-parser
-    - curl https://gitlab.freedesktop.org/hadess/check-abi/-/raw/main/contrib/check-abi-fedora.sh | bash
-    - dnf install -y $DEPS_ABI_CHECK
-    - check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD)
   artifacts:
     when: always
     paths:
     - _build/meson-logs/*
+
+check_abi:
+  before_script:
+    # ABI check, the deps are needed to build the old version of totem-pl-parser
+    - dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES $DEPS_ABI_CHECK
+  script:
+    - curl https://gitlab.freedesktop.org/hadess/check-abi/-/raw/main/contrib/check-abi-fedora.sh | bash
+    - check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD)


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