summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Willmer <alex@moreati.org.uk>2015-08-05 13:38:49 +0100
committerAlex Willmer <alex@moreati.org.uk>2015-08-05 13:38:49 +0100
commitb4ee7287c8a260c5ca4325b63325b6e66647c08b (patch)
tree54ea1541dd1858dc3ed74340e4187c518b1f6ab0
parent05010d652d1e2abfa13b4c2c9fa8f5eb48acf4bc (diff)
downloadnumpy-b4ee7287c8a260c5ca4325b63325b6e66647c08b.tar.gz
BLD: Cache pip downloads on Travis
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.
-rw-r--r--.travis.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index d7874a1fb..b31249a88 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,6 +16,10 @@ addons:
# Speedup builds, particularly when USE_CHROOT=1
- eatmydata
+cache:
+ directories:
+ - $HOME/.cache/pip
+
python:
- 2.6
- 2.7
@@ -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