Increase performance of the travis jobs
Increase the performance of the travis jobs by:
caching the pip cache dir
removing unnecessary brew update
@@ -22,10 +22,8 @@ matrix:
before_install:
# Download macOS specific extra dependencies.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then git clone https://github.com/llvm-mirror/clang.git ~/llvm --branch master --single-branch --depth 1; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install doxygen; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install llvm@7; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade boost; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install thrift@0.9; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=/usr/local/Cellar/thrift@0.9/0.9.3/bin:$PATH; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which thrift; fi
@@ -58,12 +56,14 @@ install:
# indefinitely as new package versions are released.
before_cache:
- brew cleanup
+ - rm -f $HOME/.cache/pip/log/debug.log
# Cache downloaded bottles (binary packages) to speed up our build process.
# See: https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci
cache:
directories:
- $HOME/Library/Caches/Homebrew
+ - $HOME/.cache/pip
addons:
apt:
