summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml7
-rwxr-xr-xtravis/travis-build-cpp.sh4
2 files changed, 8 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index ffcc74b2052..56808b27fcf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,6 +14,9 @@ cache:
- $HOME/.m2
- $HOME/.ccache
+git:
+ depth: 1
+
branches:
only:
- master
@@ -21,10 +24,12 @@ branches:
before_cache:
- sudo rm -rf $HOME/.m2/repository/com/yahoo
- sudo rm -rf $HOME/.m2/repository/simple/dummy-persistence
+ - du --summarize --human-readable $HOME/.m2/repository
+ - ccache --show-stats
install: true
-language: generic
+language: minimal
script: sh ./travis/travis.sh $PLATFORM_LANGUAGE
diff --git a/travis/travis-build-cpp.sh b/travis/travis-build-cpp.sh
index 50560e7e8d5..55f4b6a86da 100755
--- a/travis/travis-build-cpp.sh
+++ b/travis/travis-build-cpp.sh
@@ -7,7 +7,8 @@ BUILD_DIR=~/build
mkdir "${BUILD_DIR}"
-ccache -M 5G
+export CCACHE_SIZE="4G"
+export CCACHE_COMPRESS="1"
NUM_THREADS=4
source /opt/rh/devtoolset-6/enable || true
cd "${SOURCE_DIR}"
@@ -24,4 +25,3 @@ cmake3 \
"${SOURCE_DIR}"
make -j ${NUM_THREADS}
ctest3 --output-on-failure -j ${NUM_THREADS}
-