[libgdata/wip/hadess/add-abi-check] ci: Add ABI check




commit a69ea87fae8b6ee30d2be0448a0735798adcb664
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jul 5 17:05:09 2022 +0200

    ci: Add ABI check

 .ci/gdata.suppr | 15 +++++++++++++++
 .gitlab-ci.yml  |  8 ++++++++
 2 files changed, 23 insertions(+)
---
diff --git a/.ci/gdata.suppr b/.ci/gdata.suppr
new file mode 100644
index 00000000..e07c7ed5
--- /dev/null
+++ b/.ci/gdata.suppr
@@ -0,0 +1,15 @@
+[suppress_function]
+type_kind = function
+name_regexp = gdata_freebase_result_error_get_type
+
+[suppress_function]
+type_kind = function
+symbol_name_regexp = gdata_freebase_result_error_get_type
+
+[suppress_function]
+type_kind = function
+name_regexp = gdata_freebase_result_error_quark
+
+[suppress_function]
+type_kind = function
+symbol_name_regexp = gdata_freebase_result_error_quark
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5a9d15e1..5f1839ca 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,7 @@ variables:
   DEPENDENCIES:
     json-glib-devel
     glib2-devel
+    glib-networking
     libxml2-devel
     gtk3-devel
     libsoup-devel
@@ -18,6 +19,10 @@ variables:
     gcc-c++
     glibc-devel
     vala
+    libabigail
+  OLD_ABI_DEPENDENCIES:
+    liboauth-devel
+  LAST_ABI_BREAK: d3ba69233a9ef1f415b10efc44ea186a6d58a2bb
 
 build_stable:
   before_script:
@@ -37,3 +42,6 @@ build_stable:
     - ninja -C _build
     - ninja -C _build install
     - ninja -C _build test
+    - curl https://gitlab.freedesktop.org/hadess/check-abi/-/raw/main/contrib/check-abi-fedora.sh | bash
+    - dnf install -y $OLD_ABI_DEPENDENCIES
+    - check-abi --suppr=.ci/gdata.suppr --parameters="-Dgtk=enabled -Dgnome=enabled -Dgoa=enabled 
-Dgtk_doc=false -Dintrospection=false" ${LAST_ABI_BREAK} $(git rev-parse HEAD)


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