diff options
author | peterbell10 <peterbell10@live.co.uk> | 2020-05-16 13:57:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 13:57:14 +0200 |
commit | 21ef9e3819634215503a7a4697aaa3d51c7db966 (patch) | |
tree | 713a4e11a0990e5cf8b9facb45cc9ccfe5b88cf4 /travisbuild.sh | |
parent | sizeof(char) (diff) | |
download | cuberite-21ef9e3819634215503a7a4697aaa3d51c7db966.tar cuberite-21ef9e3819634215503a7a4697aaa3d51c7db966.tar.gz cuberite-21ef9e3819634215503a7a4697aaa3d51c7db966.tar.bz2 cuberite-21ef9e3819634215503a7a4697aaa3d51c7db966.tar.lz cuberite-21ef9e3819634215503a7a4697aaa3d51c7db966.tar.xz cuberite-21ef9e3819634215503a7a4697aaa3d51c7db966.tar.zst cuberite-21ef9e3819634215503a7a4697aaa3d51c7db966.zip |
Diffstat (limited to '')
-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 |