Skip to content

Commit

Permalink
BLD: Cache pip downloads on Travis
Browse files Browse the repository at this point in the history
This enables the cache feature of Travis container-based ingrastructure.
Pip's download/build cache is preserved between jobs, speeding up the
install phase.
Installation of nose etc is moved to after pip has been upgraded so that
wheels are favoured.
Sadly this has no effect on Cython - it's still built from source every time.
  • Loading branch information
moreati committed Aug 5, 2015
1 parent 05010d6 commit b4ee728
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ addons:
# Speedup builds, particularly when USE_CHROOT=1
- eatmydata

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

python:
- 2.6
- 2.7
Expand Down Expand Up @@ -60,11 +64,11 @@ before_install:
# We therefore control our own environment, avoid travis' numpy
- virtualenv --python=python venv
- source venv/bin/activate
- pip install nose
# pip install coverage
- python -V
- pip install --upgrade pip setuptools
# Speed up install by not compiling Cython
- pip install nose
# pip install coverage
- pip install --install-option="--no-cython-compile" Cython
- popd

Expand Down

0 comments on commit b4ee728

Please sign in to comment.