[NetworkManager-vpnc/lr/no-libnm-glib] gitlab: enable gtk4 testing




commit ee9490dafbbd3151de8c063ade5a505a40438c9e
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Tue Jun 28 10:51:45 2022 +0200

    gitlab: enable gtk4 testing

 .gitlab-ci.yml | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cdfab78..bad4c24 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,10 +6,11 @@
 
 .fedora_deps: &fedora_deps
   before_script:
-    - dnf -y install
+    - dnf -y install $EXTRA_PACKAGES
       file
       findutils
       gcc
+      make
       gettext-devel
       glib2-devel
       gtk3-devel
@@ -24,7 +25,7 @@
 .dist: &dist
   stage: test
   dependencies:
-    - fedora28_dist
+    - fedora36_dist
   variables:
     GIT_STRATEGY: none
 
@@ -32,10 +33,9 @@
   <<: *fedora_deps
   <<: *dist
   script:
-    - dnf -y install make
     - tar xJf NetworkManager-vpnc-*.tar.xz
     - cd NetworkManager-vpnc-*/
-    - ./configure
+    - ./configure $EXTRA_CONFIGURE_FLAGS
       --disable-silent-rules
     - make -j
     - make -j check
@@ -43,20 +43,30 @@
     - make -j uninstall
 
 # Roll the distribution tarball
-fedora28_dist:
+fedora36_dist:
   <<: *fedora_deps
-  image: fedora:28
+  image: fedora:36
   stage: build
   script:
     - dnf -y install
       /usr/bin/autopoint
-      autoconf automake make
+      autoconf automake appstream
+      gtk4-devel
     - sh autogen.sh
     - make -j dist
   artifacts:
     paths:
       - "*.xz"
 
-fedora_from_dist:
+# Test on a vintage distro without Gtk4
+fedora_28_from_dist:
+  <<: *fedora_from_dist
+  image: fedora:28
+
+# Test on a recent distro
+fedora_latest_from_dist:
   <<: *fedora_from_dist
+  variables:
+    EXTRA_PACKAGES: libnma-gtk4-devel
+    EXTRA_CONFIGURE_FLAGS: --with-gtk4
   image: fedora:latest


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