[rhythmbox/wip/sam/meson: 3/4] ci: Run CI using meson instead of autotools




commit dce6d69f92363e6c6ef85d3e17303a8e6ea6c192
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 | 40 ++++++++++++++++++++++++++++++++--------
 1 file changed, 32 insertions(+), 8 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2c53b76a6..df58fb949 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: ubuntu:bionic
+image: ubuntu:focal
 
 stages:
   - test
@@ -33,18 +33,42 @@ variables:
     libgrilo-0.3-dev
     libxml2-dev
     libtdb-dev
+    python3-pip
+    ninja-build
+    check
+    valac
+    xvfb
+
+  MESON_ARGS:
+    -Dprefix=/usr
+    -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
+    - G_MESSAGES_DEBUG=all GSETTINGS_BACKEND=memory GSETTINGS_SCHEMA_DIR=${CI_PROJECT_DIR}/_build/data/ 
xvfb-run -a -s "-screen 0 1024x768x24" meson test
+    - ninja install


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