From 1fb55dbdeef68a34c5ef5043cbe285b78e7dc9e4 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Thu, 11 May 2017 08:22:37 +0200 Subject: [PATCH] [travis] Optimize ccache --- .ci/travis/linux/script.sh | 3 ++- .ci/travis/macos/script.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.ci/travis/linux/script.sh b/.ci/travis/linux/script.sh index 6ad954045cc..017c3b65c0a 100755 --- a/.ci/travis/linux/script.sh +++ b/.ci/travis/linux/script.sh @@ -18,7 +18,8 @@ export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${HOME}/OTB-5.6.0 export LD_LIBRARY_PATH=${HOME}/osgeo4travis/lib export CTEST_PARALLEL_LEVEL=1 export CCACHE_TEMPDIR=/tmp -ccache -M 2G +ccache -M 500M +ccache -z DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" diff --git a/.ci/travis/macos/script.sh b/.ci/travis/macos/script.sh index a0366a135e5..277df64217e 100755 --- a/.ci/travis/macos/script.sh +++ b/.ci/travis/macos/script.sh @@ -18,8 +18,8 @@ echo $PATH export PATH=/usr/bin:${PATH} -ccache -s -ccache -M 1G +ccache -M 500M +ccache -z # Calculate the timeout for the tests. # The tests should be aborted before travis times out, in order to allow uploading