summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-07-05 16:27:18 +0200
committerBastien Nocera <hadess@hadess.net>2022-07-05 17:17:22 +0200
commit8b5c91fe668647f2d99c4ce5269babfd1b585808 (patch)
tree0bcb6a5d6cf6e23be8b2d0c805b02236093aa64e
parent1cd99e1d9104762269d579bb98e6a3914f516685 (diff)
downloadgrilo-plugins-8b5c91fe668647f2d99c4ce5269babfd1b585808.tar.gz
ci: Add a new job to compile and test against libsoup3
-rw-r--r--.gitlab-ci.yml54
1 files changed, 52 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e5d23fb..a89ae7f 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