Reduce travis' cache size

Reduces the cache from 1.1GB to 70MB which makes the cache loading and storing much faster
This commit is contained in:
konstin 2018-07-08 23:47:53 +02:00
parent f6224ca0bc
commit c32dd1c120
2 changed files with 12 additions and 12 deletions

View File

@ -4,9 +4,7 @@ language: python
cache:
pip: true
directories:
- "$HOME/.cargo"
- "$HOME/kcov"
cargo: true
matrix:
include:

View File

@ -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 ##################################################