[grilo-plugins/wip/hadess/libsoup3-prep] ci: Add a new job to compile and test against libsoup3




commit 8b5c91fe668647f2d99c4ce5269babfd1b585808
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jul 5 16:27:18 2022 +0200

    ci: Add a new job to compile and test against libsoup3

 .gitlab-ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 52 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e5d23fbb..a89ae7f5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,12 @@ variables:
     vala
     gtk-doc
 
+  DEPENDENCY_GRILO_SOUP2:
+    libsoup-devel
+
+  DEPENDENCY_GRILO_SOUP3:
+    libsoup3-devel
+
   DEPENDENCIES:
     sqlite-devel
     libgcrypt-devel
@@ -45,10 +51,10 @@ build_stable:
   before_script:
     - dnf update -y --nogpgcheck
   script:
-    - dnf install -y --nogpgcheck $DEPENDENCIES_GRILO $DEPENDENCIES
+    - dnf install -y --nogpgcheck $DEPENDENCIES_GRILO $DEPENDENCIES $DEPENDENCY_GRILO_SOUP2
     # As part of configuring grilo-plugins.git for build, the latest code from
     # grilo.git will be fetched by Meson and it will be built as a subproject.
-    - meson . _build --prefix=/usr
+    - meson . _build --prefix=/usr -Dgrilo:soup3=false
       -Denable-bookmarks=yes
       -Denable-chromaprint=yes
       -Denable-dleyna=yes
@@ -84,3 +90,47 @@ build_stable:
     when: on_failure
     paths:
       - _build/meson-logs
+
+build_soup3:
+  before_script:
+    - dnf update -y --nogpgcheck
+  script:
+    - dnf install -y --nogpgcheck $DEPENDENCIES_GRILO $DEPENDENCIES $DEPENDENCY_GRILO_SOUP3
+    # As part of configuring grilo-plugins.git for build, the latest code from
+    # grilo.git will be fetched by Meson and it will be built as a subproject.
+    - meson . _build --prefix=/usr -Dgrilo:soup3=true
+      -Denable-bookmarks=yes
+      -Denable-chromaprint=yes
+      -Denable-dleyna=no
+      -Denable-dmap=yes
+      -Denable-filesystem=yes
+      -Denable-flickr=yes
+      -Denable-freebox=yes
+      -Denable-gravatar=yes
+      -Denable-local-metadata=yes
+      -Denable-lua-factory=yes
+      -Denable-magnatune=yes
+      -Denable-metadata-store=yes
+      -Denable-opensubtitles=no
+      -Denable-optical-media=yes
+      -Denable-podcasts=yes
+      -Denable-raitv=yes
+      -Denable-shoutcast=yes
+      -Denable-thetvdb=yes
+      -Denable-tmdb=no
+      -Denable-tracker3=yes
+      -Denable-youtube=no
+    - ninja -C _build
+    - ninja -C _build install
+    # Start a system bus for upower
+    - mkdir -p /run/dbus
+    - mkdir -p /var
+    - ln -s /var/run /run
+    - dbus-daemon --system --fork
+    - /usr/libexec/upowerd &
+    - LANG=C.UTF-8 dbus-run-session meson test -C _build --suite=grilo-plugins
+  artifacts:
+    name: meson-logs
+    when: on_failure
+    paths:
+      - _build/meson-logs


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