summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-12-04 18:40:03 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-12-04 18:55:42 +0100
commitfc18638a24c29cb977c7f9740e79f079a4e6452f (patch)
tree85eaac4bd658eff77526c0ccee0393f9548a4a71 /.gitlab-ci
parente6cce4b415038025f036965d66cbb2b0e831962a (diff)
downloadpango-fc18638a24c29cb977c7f9740e79f079a4e6452f.tar.gz
ci: add a msys2 mingw64 job
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/test-msys2.sh29
1 files changed, 29 insertions, 0 deletions
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