diff options
author | Bjørn Christian Seime <bjorn.christian@seime.no> | 2017-08-16 19:46:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-16 19:46:35 +0200 |
commit | ad2d1017c3a5fd95d54e6e92c00ed71a8956e92c (patch) | |
tree | 8b156fe9d80f387d2df12e686950338d2f841073 | |
parent | 992faa94365f030fb994897f1df94f4518e4f188 (diff) | |
parent | 2637f785e83b34661442c0675eadc851d651313e (diff) |
Merge pull request #3134 from vespa-engine/bjorncs/travis
Bjorncs/travis
-rw-r--r-- | .travis.yml | 7 | ||||
-rwxr-xr-x | travis/travis-build-cpp.sh | 4 |
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} - |