[libwnck/wip/marco/meson-build: 1/3] gitlab-ci: also build with meson



commit 629e72cedd36699c90db980592d2b4a312d24348
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Sep 21 04:44:03 2018 -0500

    gitlab-ci: also build with meson
    
    Plus refactor jobs so that we don't have to repeat common commands in both build
    parts.
    
    Get meson from pip as we depend on 0.48.1 which is still not available in latest
    ubuntu-devel. This can be changed in future.

 .gitlab-ci.yml | 64 ++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 42 insertions(+), 22 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ec3ded9..58b6d04 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,32 +1,52 @@
 stages:
   - build
 
-build-ubuntu:
-  image: ubuntu:devel
+.base_build_template: &base_build
   stage: build
+  image: ubuntu:devel
+
+.ubuntu_deps_install_template: &ubuntu_deps_install
+    apt-get update &&
+    apt-get install -q -y --no-install-recommends
+      build-essential
+      docbook-xml
+      gettext
+      gobject-introspection
+      gtk-doc-tools
+      libgirepository1.0-dev
+      libglib2.0-dev
+      libglib2.0-doc
+      libgtk-3-dev
+      libgtk-3-doc
+      libstartup-notification0-dev
+      libtool
+      libx11-dev
+      libxext-dev
+      libxres-dev
+
+
+build:ubuntu:autogen:
+  <<: *base_build
   before_script:
-    - apt-get update
+    - *ubuntu_deps_install
     - apt-get install -q -y --no-install-recommends
-                      autoconf-archive
-                      automake
-                      autopoint
-                      build-essential
-                      gettext
-                      libstartup-notification0-dev
-                      docbook-xml
-                      libx11-dev
-                      libxres-dev
-                      libxext-dev
-                      libgtk-3-dev
-                      libglib2.0-dev
-                      libtool
-                      gobject-introspection
-                      libgirepository1.0-dev
-                      gtk-doc-tools
-                      libglib2.0-doc
-                      libgtk-3-doc
+        autoconf-archive
+        automake
+        autopoint
   script:
-    - ./autogen.sh
+    - ./autogen.sh --enable-gtk-doc=yes
     - make
     - make distcheck
 
+build:ubuntu:meson:
+  <<: *base_build
+  before_script:
+    - *ubuntu_deps_install
+    - apt-get install -q -y --no-install-recommends
+        ninja-build
+        python3-pip
+        python3-setuptools
+    - pip3 install meson
+  script:
+    - meson _build -Denable-gtk-doc=true
+    - ninja -C _build


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