diff options
author | Christoph Reiter <creiter@src.gnome.org> | 2018-04-11 12:18:55 +0200 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2018-04-11 15:33:00 +0200 |
commit | c542115906ff2623b157ee540150af91cba82f8e (patch) | |
tree | 4f0fcfea3ae136fb8a1ae30c81beb5e3239bc6f1 /.gitlab-ci | |
parent | d448be007ee2111794dcd9315a6441c6127c920c (diff) | |
download | gtk+-c542115906ff2623b157ee540150af91cba82f8e.tar.gz |
gitlab-ci: Reenable ccache but disable it during the initial meson call
There where some problems (??) with ccache not detecting changes during meson
checks. Setting CCACHE_DISABLE during the meson execution makes ccache not use
the cache and pass things directly to the compiler.
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/test-docker.sh | 9 | ||||
-rw-r--r-- | .gitlab-ci/test-msys2.sh | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab-ci/test-docker.sh b/.gitlab-ci/test-docker.sh index 48b22d25ca..47cb9e9daf 100755 --- a/.gitlab-ci/test-docker.sh +++ b/.gitlab-ci/test-docker.sh @@ -4,16 +4,25 @@ set -e srcdir=$(pwd) +mkdir -p _ccache +export CCACHE_BASEDIR="$(pwd)" +export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache" + +ccache --zero-stats +ccache --show-stats +export CCACHE_DISABLE=true meson \ -Dx11-backend=true \ -Dwayland-backend=true \ -Dbroadway-backend=true \ -Dvulkan=yes \ _build $srcdir +unset CCACHE_DISABLE cd _build ninja +ccache --show-stats xvfb-run -a -s "-screen 0 1024x768x24" \ meson test \ diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2.sh index da0599ad4b..aacc88d048 100644 --- a/.gitlab-ci/test-msys2.sh +++ b/.gitlab-ci/test-msys2.sh @@ -16,6 +16,7 @@ pacman --noconfirm -S --needed \ base-devel \ git \ mingw-w64-$MSYS2_ARCH-toolchain \ + mingw-w64-$MSYS2_ARCH-ccache \ mingw-w64-$MSYS2_ARCH-pkg-config \ mingw-w64-$MSYS2_ARCH-gobject-introspection \ mingw-w64-$MSYS2_ARCH-meson \ @@ -32,11 +33,20 @@ pacman --noconfirm -S --needed \ mingw-w64-$MSYS2_ARCH-gst-plugins-bad \ mingw-w64-$MSYS2_ARCH-shared-mime-info +mkdir -p _ccache +export CCACHE_BASEDIR="$(pwd)" +export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache" + # Build +ccache --zero-stats +ccache --show-stats +export CCACHE_DISABLE=true meson \ -Denable-x11-backend=false \ -Denable-wayland-backend=false \ -Denable-win32-backend=true \ _build +unset CCACHE_DISABLE ninja -C _build +ccache --show-stats |