summaryrefslogtreecommitdiff
path: root/.gitlab/ci/test-docker.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab/ci/test-docker.sh')
-rwxr-xr-x.gitlab/ci/test-docker.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/.gitlab/ci/test-docker.sh b/.gitlab/ci/test-docker.sh
index 53cac9dcb..5c2ecd688 100755
--- a/.gitlab/ci/test-docker.sh
+++ b/.gitlab/ci/test-docker.sh
@@ -2,6 +2,7 @@
set -e
+builddir=$(mktemp -d build_XXXXXX)
srcdir=$(pwd)
mkdir -p _ccache
@@ -10,12 +11,18 @@ export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
ccache --zero-stats
ccache --show-stats
+
+# Disable ccache while running Meson, to avoid cached compiler tests
export CCACHE_DISABLE=true
-meson \
- _build $srcdir
+meson ${builddir} ${srcdir} || exit $?
unset CCACHE_DISABLE
-cd _build
+cd ${builddir}
+
+ninja || exit $?
+
+cd ..
+
+rm -rf ${builddir}
-ninja
ccache --show-stats