From b4ee7287c8a260c5ca4325b63325b6e66647c08b Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 5 Aug 2015 13:38:49 +0100 Subject: [PATCH] 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. --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d7874a1fba0e..b31249a884d9 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