[grilo/wip/hadess/soup3: 2/2] ci: Build both soup3 and soup2 variants




commit 29905e7db61eeb5b556eb0088f00dc259912b413
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jul 4 17:02:55 2022 +0200

    ci: Build both soup3 and soup2 variants
    
    And check ABI against both variants.

 .gitlab-ci.yml | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3dfbc1b..c874d29 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,6 @@ variables:
                 gtk-doc
                 gobject-introspection-devel
                 libxml2-devel
-                libsoup-devel
                 glib2-devel
                 gtk3-devel
                 liboauth-devel
@@ -17,12 +16,14 @@ variables:
                 gcc-c++
                 glibc-devel
                 libabigail
+  SOUP2_DEPS: libsoup-devel
+  SOUP3_DEPS: libsoup3-devel
   LAST_ABI_BREAK: 60d135ef64f16671bb0ab4079ecbc59bdc32cbc7
 
 build_stable:
   before_script:
     - dnf update -y --nogpgcheck
-    - dnf install -y --nogpgcheck $DEPENDENCIES
+    - dnf install -y --nogpgcheck $DEPENDENCIES $SOUP3_DEPS
   script:
     - meson . _build --prefix=/usr
     - ninja -C _build
@@ -32,11 +33,23 @@ build_stable:
 build_no_optional_libs:
   before_script:
     - dnf update -y --nogpgcheck
-    - dnf install -y --nogpgcheck $DEPENDENCIES
+    - dnf install -y --nogpgcheck $DEPENDENCIES $SOUP2_DEPS
   script:
-    - meson . _build --prefix=/usr -Denable-grl-net=true -Denable-grl-pls=true
+    - meson . _build --prefix=/usr -Denable-grl-net=true -Denable-grl-pls=true -Dsoup3=false
     - 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
-    - check-abi --parameters="-Denable-grl-net=true -Denable-grl-pls=true" ${LAST_ABI_BREAK} $(git rev-parse 
HEAD)
+    - check-abi --old-parameters="-Denable-grl-net=true -Denable-grl-pls=true" 
--new-parameters="-Denable-grl-net=true -Denable-grl-pls=true -Dsoup3=false" ${LAST_ABI_BREAK} $(git 
rev-parse HEAD)
+
+build_no_optional_libs_soup3:
+  before_script:
+    - dnf update -y --nogpgcheck
+    - dnf install -y --nogpgcheck $DEPENDENCIES $SOUP3_DEPS
+  script:
+    - meson . _build --prefix=/usr -Denable-grl-net=true -Denable-grl-pls=true -Dsoup3=true
+    - 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
+    - check-abi --old-parameters="-Denable-grl-net=true -Denable-grl-pls=true" 
--new-parameters="-Denable-grl-net=true -Denable-grl-pls=true -Dsoup3=true" ${LAST_ABI_BREAK} $(git rev-parse 
HEAD)


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