[libnotify/wip/3v1n0/meson: 2/2] .gitlab-ci: build libnotify with both autotools and meson



commit 9df9d413d9fe6b9c69cf5a77cb04b0c21542bc07
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Nov 7 19:07:58 2018 -0500

    .gitlab-ci: build libnotify with both autotools and meson

 .gitlab-ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..9228409
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,42 @@
+stages:
+  - build
+
+.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
+      gobject-introspection
+      gtk-doc-tools
+      libgdk-pixbuf2.0-dev
+      libgirepository1.0-dev
+      libglib2.0-dev
+      libgtk-3-dev
+      libpopt-dev
+      xmlto
+
+build:ubuntu:autogen:
+  <<: *base_build
+  before_script:
+    - *ubuntu_deps_install
+    - apt-get install -q -y --no-install-recommends
+        gnome-common
+  script:
+    - ./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 -Ddocbook-docs=enabled
+    - ninja -C _build


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