summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-06-18 09:29:14 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-06-18 09:41:19 +0200
commitd6609b0d24227cb4af9507400c2ea614d386cbf3 (patch)
tree4394164cfdc282c99fa333ad4a87c814a1ba79b7 /.gitlab-ci
parent953c9666ac807de2b9f6222b8d399a2c5e45e522 (diff)
downloadgobject-introspection-d6609b0d24227cb4af9507400c2ea614d386cbf3.tar.gz
ci: add a MSYS2 32bit job
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/test-msys2.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2.sh
new file mode 100644
index 00000000..5b5efe2a
--- /dev/null
+++ b/.gitlab-ci/test-msys2.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+set -e
+
+export PATH="/c/msys64/$MSYSTEM/bin:$PATH"
+if [[ "$MSYSTEM" == "MINGW32" ]]; then
+ export MSYS2_ARCH="i686"
+else
+ export MSYS2_ARCH="x86_64"
+fi
+
+pacman --noconfirm -Suy
+
+pacman --noconfirm -S --needed \
+ git \
+ base-devel \
+ mingw-w64-$MSYS2_ARCH-toolchain \
+ mingw-w64-$MSYS2_ARCH-meson \
+ mingw-w64-$MSYS2_ARCH-python3 \
+ mingw-w64-$MSYS2_ARCH-libffi \
+ mingw-w64-$MSYS2_ARCH-glib2 \
+ mingw-w64-$MSYS2_ARCH-pkg-config \
+ mingw-w64-$MSYS2_ARCH-cairo \
+ mingw-w64-$MSYS2_ARCH-pcre \
+ mingw-w64-$MSYS2_ARCH-zlib \
+ mingw-w64-$MSYS2_ARCH-gettext
+
+meson --buildtype debug _build
+cd _build
+ninja
+
+meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib