[grilo-plugins/wip/hadess/ci-add-tracker3] ci: Build and test the new tracker 3 plugin




commit b9ae8a838ef1985878649a68fc8804f33713d243
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Aug 21 21:09:45 2020 +0200

    ci: Build and test the new tracker 3 plugin
    
    Relegate the tracker2 plugin build and testing to a separate target
    which we'll remove in the future.

 .gitlab-ci.yml | 29 +++++++++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 34509eb6..1c6ae419 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,15 +10,22 @@ variables:
   DEPENDENCIES: sqlite-devel libgcrypt-devel itstool lua-devel
                 libsoup-devel gperf libarchive-devel json-glib-devel
                 avahi-gobject-devel totem-pl-parser-devel rest-devel
-                tracker-devel libdmapsharing-devel libmediaart-devel
+                libdmapsharing-devel libmediaart-devel
                 gom-devel gnome-online-accounts-devel libgdata-devel
                 gstreamer1-plugins-good gstreamer1-plugins-bad-free-extras
+                python3-gobject-base
 
 build_stable:
   before_script:
     - dnf update -y --nogpgcheck
   script:
     - dnf install -y --nogpgcheck $DEPENDENCIES_GRILO $DEPENDENCIES
+    # FIXME: While tracker3 isn't in Fedora
+    - git clone https://gitlab.gnome.org/GNOME/tracker.git
+    - cd tracker
+    - meson . _build --prefix=/usr -Ddocs=false -Dman=false -Dbash_completion=false -Dtest_utils=true
+    - ninja -C _build install
+    - cd ..
     # 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
@@ -42,7 +49,7 @@ build_stable:
       -Denable-shoutcast=yes
       -Denable-thetvdb=yes
       -Denable-tmdb=yes
-      -Denable-tracker=yes
+      -Denable-tracker3=yes
       -Denable-vimeo=yes
       -Denable-youtube=yes
     - ninja -C _build
@@ -53,3 +60,21 @@ build_stable:
     when: on_failure
     paths:
       - _build/meson-logs
+
+build_tracker2:
+  before_script:
+    - dnf update -y --nogpgcheck
+  script:
+    - dnf install -y --nogpgcheck $DEPENDENCIES_GRILO $DEPENDENCIES tracker-devel
+    # 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
+      -Denable-tracker=yes
+    - ninja -C _build
+    - ninja -C _build install
+    - 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]