mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 16:06:16 +01:00
3fad4d45bf
This reverts commit 91f14cd058
.
The freedesktop SDK, which is used by gnome-build-meta, only has Meson
0.63. Bumping GLib’s Meson dependency to 0.64 means that, at the moment,
GLib is not buildable in gnome-build-meta and hence can’t be tested in
nightly pipelines against other projects, etc.
That’s bad for testing GLib.
It’s arguably bad that we’re restricted to using an older version of
Meson than shipped by Debian Testing, but that’s a separate discussion
to be had.
Revert the Meson 0.64 dependency until the freedesktop SDK ships Meson ≥
0.64. This also means reverting the simplifications to use of
`gnome.mkenum_simple()`.
See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3077#note_1601064
69 lines
1.7 KiB
Bash
Executable File
69 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
export PATH="/c/msys64/$MSYSTEM/bin:$PATH"
|
|
|
|
pacman --noconfirm -Suy
|
|
|
|
pacman --noconfirm -S --needed \
|
|
base-devel \
|
|
lcov \
|
|
"${MINGW_PACKAGE_PREFIX}"-ccache \
|
|
"${MINGW_PACKAGE_PREFIX}"-gettext \
|
|
"${MINGW_PACKAGE_PREFIX}"-libffi \
|
|
"${MINGW_PACKAGE_PREFIX}"-meson \
|
|
"${MINGW_PACKAGE_PREFIX}"-pcre2 \
|
|
"${MINGW_PACKAGE_PREFIX}"-python3 \
|
|
"${MINGW_PACKAGE_PREFIX}"-python-pip \
|
|
"${MINGW_PACKAGE_PREFIX}"-toolchain \
|
|
"${MINGW_PACKAGE_PREFIX}"-zlib \
|
|
"${MINGW_PACKAGE_PREFIX}"-libelf
|
|
|
|
mkdir -p _coverage
|
|
mkdir -p _ccache
|
|
CCACHE_BASEDIR="$(pwd)"
|
|
CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
|
|
export CCACHE_BASEDIR CCACHE_DIR
|
|
|
|
pip3 install --upgrade --user meson==0.60.3
|
|
|
|
PATH="$(cygpath "$USERPROFILE")/.local/bin:$HOME/.local/bin:$PATH"
|
|
DIR="$(pwd)"
|
|
export PATH CFLAGS
|
|
|
|
if [[ "$MSYSTEM" == "CLANG64" ]]; then
|
|
# FIXME: fix the clang build warnings
|
|
# shellcheck disable=SC2086
|
|
meson ${MESON_COMMON_OPTIONS} _build
|
|
else
|
|
# shellcheck disable=SC2086
|
|
meson ${MESON_COMMON_OPTIONS} --werror _build
|
|
fi
|
|
|
|
cd _build
|
|
ninja
|
|
|
|
if [[ "$CFLAGS" == *"-coverage"* ]]; then
|
|
lcov \
|
|
--quiet \
|
|
--config-file "${DIR}"/.lcovrc \
|
|
--directory "${DIR}/_build" \
|
|
--capture \
|
|
--initial \
|
|
--output-file "${DIR}/_coverage/${CI_JOB_NAME}-baseline.lcov"
|
|
fi
|
|
|
|
meson test --timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}"
|
|
meson test --timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}" \
|
|
--setup=unstable_tests --suite=failing --suite=flaky || true
|
|
|
|
if [[ "$CFLAGS" == *"-coverage"* ]]; then
|
|
lcov \
|
|
--quiet \
|
|
--config-file "${DIR}"/.lcovrc \
|
|
--directory "${DIR}/_build" \
|
|
--capture \
|
|
--output-file "${DIR}/_coverage/${CI_JOB_NAME}.lcov"
|
|
fi
|