From c32dd1c120e46aba17a785486304d0dcf93d0cfc Mon Sep 17 00:00:00 2001 From: konstin Date: Sun, 8 Jul 2018 23:47:53 +0200 Subject: [PATCH] Reduce travis' cache size Reduces the cache from 1.1GB to 70MB which makes the cache loading and storing much faster --- .travis.yml | 4 +--- ci/travis/setup.sh | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5786ee14..6b518853 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,7 @@ language: python cache: pip: true - directories: - - "$HOME/.cargo" - - "$HOME/kcov" + cargo: true matrix: include: diff --git a/ci/travis/setup.sh b/ci/travis/setup.sh index f16fd064..55bcb0ae 100755 --- a/ci/travis/setup.sh +++ b/ci/travis/setup.sh @@ -41,16 +41,18 @@ mkdir -p $SCCACHE_DIR ### Setup kcov ################################################################# -if [ ! -d "$HOME/kcov/.git" ]; then - git clone --depth=1 https://github.com/SimonKagstrom/kcov "$HOME/kcov" -fi +if [ ! -f "$HOME/.cargo/bin/kcov" ]; then + if [ ! -d "$HOME/kcov/.git" ]; then + git clone --depth=1 https://github.com/SimonKagstrom/kcov "$HOME/kcov" + fi -cd $HOME/kcov -git pull -cmake . -make -install src/kcov $HOME/.cargo/bin/kcov -cd $TRAVIS_BUILD_DIR + cd $HOME/kcov + git pull + cmake . + make + install src/kcov $HOME/.cargo/bin/kcov + cd $TRAVIS_BUILD_DIR +fi ### Setup python linker flags ##################################################