[gnome-autoar/wip/oholy/ci-abi] ci: Add check for ABI breaks




commit 618bd226186da739bd90c27333d8f79c20035b2c
Author: Ondrej Holy <oholy redhat com>
Date:   Fri Aug 6 16:48:33 2021 +0200

    ci: Add check for ABI breaks
    
    Let's add a check for potential ABI breaks to not break ABI by mistake,
    or to not forget to update the library version.

 .gitlab-ci.yml     | 4 +++-
 .gitlab/Dockerfile | 4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4c8e53d..21133f0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,6 @@
 fedora latest:
+    variables:
+        LAST_ABI_BREAK: 87e278ef077b4952595cf9d6e973e6d8246f20b3
     image:
         name: registry.gitlab.gnome.org/gnome/gnome-autoar:latest
         entrypoint: ["/bin/sh", "-c"]
@@ -9,7 +11,7 @@ fedora latest:
         - make
         - cd tests
         - ./test-extract-unit
-    allow_failure: true
+        - check-abi $LAST_ABI_BREAK $(git rev-parse HEAD)
 
 update image:
     variables:
diff --git a/.gitlab/Dockerfile b/.gitlab/Dockerfile
index 60fa5c8..c715842 100644
--- a/.gitlab/Dockerfile
+++ b/.gitlab/Dockerfile
@@ -3,3 +3,7 @@ FROM fedora:latest
 RUN dnf install --nogpg -y dnf-plugins-core git gnome-common gtk-doc meson \
  && dnf builddep --nogpg -y gnome-autoar \
  && dnf clean all
+
+RUN curl https://gitlab.freedesktop.org/hadess/check-abi/-/raw/main/contrib/check-abi-fedora.sh | bash \
+ && dnf clean all \
+ && rm -r check-abi


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