From 21ef9e3819634215503a7a4697aaa3d51c7db966 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sat, 16 May 2020 12:57:14 +0100 Subject: Travis: Fix ccache on debug builds (#4741) --- travisbuild.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'travisbuild.sh') diff --git a/travisbuild.sh b/travisbuild.sh index b4163f0a8..adcf5d12c 100755 --- a/travisbuild.sh +++ b/travisbuild.sh @@ -11,16 +11,24 @@ if [ `which ccache` ]; then export CCACHE_CPP2=true CACHE_ARGS="-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" echo "Using ccache installed at $(which ccache)" + ccache --max-size=3G + ccache -z # Zero statistics fi cmake . -DBUILD_TOOLS=1 -DSELF_TEST=1 ${CACHE_ARGS}; echo "Building..." -cmake --build . -- -j 2; -ctest -j 2 -V; +cmake --build . -j 2 + +if [ `which ccache` ]; then + echo "Built with ccache, outputting cache stats..." + ccache -s +fi echo "Testing..." +ctest -j 2 -V; + cd Server/; touch apiCheckFailed.flag if [ "$TRAVIS_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then -- cgit v1.2.3