From 3ffe9f5715cb415e83c92b913934fc93310c1442 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 20 Mar 2016 20:32:08 +0100 Subject: [PATCH] Cache pip downloads on Travis. --- .travis.yml | 3 +++ tox.ini | 1 + 2 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2e3837aaf..e7261f19e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ python: - "3.3" - "3.4" - "3.5" +cache: + directories: + $HOME/.cache/pip # install libjpeg-dev for Pillow to handle JPEGs sudo: false addons: diff --git a/tox.ini b/tox.ini index 84420bc88..ff52e29f0 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,7 @@ envlist = py27, py35 [testenv] commands = py.test --cov=dosage --cov=dosagelib --tb=short -n10 +passenv = TRAVIS # Also install optional dependencies for tests. deps = pytest-xdist