diff options
Diffstat (limited to 'travisbuild.sh')
-rwxr-xr-x | travisbuild.sh | 12 |
1 files changed, 10 insertions, 2 deletions
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 |