[rhythmbox/wip/sam/meson: 1/2] ci: Run CI using meson instead of autotools




commit 51f65f99b13cc5f3e95110cf14e41422734e2f7d
Author: Sam Thursfield <sam afuera me uk>
Date:   Tue Oct 27 20:44:59 2020 +0100

    ci: Run CI using meson instead of autotools
    
    And bump Ubuntu version to 20.04, as we see this on Bionic:
    ../lib/libmediaplayerid/meson.build:38:0: ERROR: Static libraries can only be introspected with 
GObject-Introspection >=1.58.1

 .gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++--------
 1 file changed, 30 insertions(+), 8 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2c53b76a6..060e3eeac 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: ubuntu:bionic
+image: ubuntu:focal
 
 stages:
   - test
@@ -33,18 +33,40 @@ variables:
     libgrilo-0.3-dev
     libxml2-dev
     libtdb-dev
+    python3-pip
+    ninja-build
+    check
+    valac
+
+  MESON_ARGS:
+    -Dfm_radio=disabled
+    -Dplugins_python=enabled
+    -Dlibnotify=enabled
+    -Dmmkeys=enabled
+    -Ddaap=enabled
+    -Dgrilo=enabled
+    -Dgudev=enabled
+    -Dipod=enabled
+    -Dlibsecret=enabled
+    -Dmtp=enabled
+    -Dlirc=enabled
+    -Dsample-plugins=true
+    -Dgtk_doc=true
+    -Dhelp=true
+    -Dtests=true
 
 before_script:
+  - export DEBIAN_FRONTEND=noninteractive
   - apt-get update
   - apt-get install -y $UBUNTU_DEPS
+  - pip3 install meson
 
 test:
   stage: test
   script:
-    - mkdir build
-    - cd build
-    - NOCONFIGURE=1 ../autogen.sh
-    - ../configure
-    - make
-    - make check
-    - make install
+    - mkdir _build
+    - cd _build
+    - meson .. $MESON_ARGS
+    - ninja
+    - meson test
+    - ninja install


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