summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-12-08 21:43:10 +0000
committerChristoph Reiter <reiter.christoph@gmail.com>2018-12-08 21:43:10 +0000
commit0f4dd5e39a86e9ae749b3b4627488e19d18dd8a5 (patch)
tree62892e527e84b472d27fc180de486e277c6d0349
parent9aefac0379809d43d9450570cddebd222f7c5625 (diff)
parent08671f431b66cefe8dcb5718e3828887e98e7636 (diff)
downloadgobject-introspection-0f4dd5e39a86e9ae749b3b4627488e19d18dd8a5.tar.gz
Merge branch 'ci-msys2-autotools' into 'master'
ci: Add a msys2 autotools job See merge request GNOME/gobject-introspection!86
-rw-r--r--.gitlab-ci.yml26
-rw-r--r--.gitlab-ci/test-msys2-autotools.sh27
-rw-r--r--.gitlab-ci/test-msys2-meson.sh (renamed from .gitlab-ci/test-msys2.sh)0
3 files changed, 48 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2562d2a3..50e7a4ad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ cache:
paths:
- _ccache/
-fedora-x86_64-meson-python3:
+fedora-x86_64-meson:
stage: build
variables:
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
@@ -28,7 +28,7 @@ fedora-x86_64-meson-python3:
paths:
- "${CI_PROJECT_DIR}/_build/meson-logs"
-fedora-x86_64-autotools-python3:
+fedora-x86_64-autotools:
stage: build
variables:
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
@@ -47,7 +47,7 @@ fedora-x86_64-autotools-python3:
paths:
- "${CI_PROJECT_DIR}/*/scanner/test-suite.log"
-msys2-mingw32-python3:
+msys2-mingw32-meson:
stage: build
tags:
- win32
@@ -56,14 +56,30 @@ msys2-mingw32-python3:
CHERE_INVOKING: "yes"
script:
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
- - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
+ - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2-meson.sh"
artifacts:
when: on_failure
name: "gi-_%CI_COMMIT_REF_NAME%"
paths:
- _build/meson-logs
-vs2017-x64-python3:
+msys2-mingw32-autotools:
+ stage: build
+ tags:
+ - win32
+ variables:
+ MSYSTEM: "MINGW32"
+ CHERE_INVOKING: "yes"
+ script:
+ - C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
+ - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2-autotools.sh"
+ artifacts:
+ when: on_failure
+ name: "gi-_%CI_COMMIT_REF_NAME%"
+ paths:
+ - _build/meson-logs
+
+vs2017-x64-meson:
stage: build
allow_failure: true
tags:
diff --git a/.gitlab-ci/test-msys2-autotools.sh b/.gitlab-ci/test-msys2-autotools.sh
new file mode 100644
index 00000000..1029864b
--- /dev/null
+++ b/.gitlab-ci/test-msys2-autotools.sh
@@ -0,0 +1,27 @@
+#!/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 \
+ base-devel \
+ autoconf-archive \
+ mingw-w64-$MSYS2_ARCH-toolchain \
+ mingw-w64-$MSYS2_ARCH-python3 \
+ mingw-w64-$MSYS2_ARCH-libffi \
+ mingw-w64-$MSYS2_ARCH-cairo \
+ mingw-w64-$MSYS2_ARCH-glib2 \
+ mingw-w64-$MSYS2_ARCH-gtk-doc
+
+./autogen.sh
+
+make -j6
+make -j6 check
diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2-meson.sh
index 9c5abe3e..9c5abe3e 100644
--- a/.gitlab-ci/test-msys2.sh
+++ b/.gitlab-ci/test-msys2-meson.sh