Skip to content

TST: enable caching on travis #5741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 24, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
sudo: false

cache:
directories:
- $HOME/.ccache
- $HOME/.cache/pip

addons:
apt:
packages:
Expand Down Expand Up @@ -55,12 +60,15 @@ before_install:
# Install into our own pristine virtualenv
- virtualenv --python=python venv
- source venv/bin/activate
- export PATH=/usr/lib/ccache:$PATH

install:
- ccache -s
# Upgrade pip and setuptools. Mock has issues with the default version of
# setuptools
- |
pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade setuptools
# Install only from travis wheelhouse
- if [ -z "$PRE" ]; then
Expand Down