[pango: 1/2] ci: add a msys2 mingw64 job
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango: 1/2] ci: add a msys2 mingw64 job
- Date: Tue, 4 Dec 2018 18:06:54 +0000 (UTC)
commit fc18638a24c29cb977c7f9740e79f079a4e6452f
Author: Christoph Reiter <reiter christoph gmail com>
Date: Tue Dec 4 18:40:03 2018 +0100
ci: add a msys2 mingw64 job
.gitlab-ci.yml | 45 ++++++++++++++++++++++++++++++---------------
.gitlab-ci/test-msys2.sh | 29 +++++++++++++++++++++++++++++
2 files changed, 59 insertions(+), 15 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d7c8eec3..585d5e95 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,23 +3,38 @@ image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/base:latest
stages:
- build
-before_script:
- - >
- dnf install -y \
- gcc \
- gcc-c++ \
- meson \
- redhat-rpm-config \
- glib2-devel \
- harfbuzz-devel \
- fribidi-devel \
- cairo-devel \
- gobject-introspection-devel \
- cairo-gobject-devel \
- abattis-cantarell-fonts
-
build-pango:
stage: build
+ before_script:
+ - >
+ dnf install -y \
+ gcc \
+ gcc-c++ \
+ meson \
+ redhat-rpm-config \
+ glib2-devel \
+ harfbuzz-devel \
+ fribidi-devel \
+ cairo-devel \
+ gobject-introspection-devel \
+ cairo-gobject-devel \
+ abattis-cantarell-fonts
script:
- meson _build
- ninja -C _build dist
+
+msys2-mingw64:
+ stage: build
+ tags:
+ - win32
+ variables:
+ MSYSTEM: "MINGW64"
+ CHERE_INVOKING: "yes"
+ script:
+ - C:\msys64\usr\bin\pacman --noconfirm -Syyuu
+ - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
+ artifacts:
+ name: "%CI_JOB_NAME%-%CI_COMMIT_REF_NAME%"
+ when: always
+ paths:
+ - _build/meson-logs
diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2.sh
new file mode 100644
index 00000000..1338f9c6
--- /dev/null
+++ b/.gitlab-ci/test-msys2.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+set -e
+
+if [[ "$MSYSTEM" == "MINGW32" ]]; then
+ export MSYS2_ARCH="i686"
+else
+ export MSYS2_ARCH="x86_64"
+fi
+
+pacman --noconfirm -Suy
+
+pacman --noconfirm -S --needed \
+ base-devel \
+ mingw-w64-$MSYS2_ARCH-gobject-introspection \
+ mingw-w64-$MSYS2_ARCH-harfbuzz \
+ mingw-w64-$MSYS2_ARCH-fontconfig \
+ mingw-w64-$MSYS2_ARCH-fribidi \
+ mingw-w64-$MSYS2_ARCH-libthai \
+ mingw-w64-$MSYS2_ARCH-cairo \
+ mingw-w64-$MSYS2_ARCH-meson \
+ mingw-w64-$MSYS2_ARCH-toolchain
+
+meson --buildtype debug _build
+cd _build
+ninja
+
+# FIXME: Fix tests
+meson test || true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]