From 9814bb0a6f32bccf18a59b5181bd30fb7f6607d8 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Thu, 30 Jun 2016 01:21:58 +0200 Subject: [PATCH] Cache tox build on travis to seed up tests --- .travis.yml | 1 + tox.ini | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5634e45..30b1164 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,7 @@ env: cache: directories: - $HOME/.pip-cache/ + - $HOME/build/nitmir/django-cas-server/.tox/ install: - "travis_retry pip install setuptools --upgrade" - "pip install tox" diff --git a/tox.ini b/tox.ini index ad0fec7..c2693d0 100644 --- a/tox.ini +++ b/tox.ini @@ -15,9 +15,11 @@ exclude=migrations [base] deps = -r{toxinidir}/requirements-dev.txt +passenv=PIP_DOWNLOAD_CACHE [testenv] commands=py.test {posargs:cas_server/tests/} +passenv={[base]passenv} [testenv:py27-django17] basepython=python2.7 @@ -59,10 +61,13 @@ deps = basepython=python deps=flake8 commands=flake8 {toxinidir}/cas_server +passenv={[base]passenv} [testenv:coverage] basepython=python -passenv=CODACY_PROJECT_TOKEN +passenv= + CODACY_PROJECT_TOKEN + {[base]passenv} deps= -r{toxinidir}/requirements-dev.txt codacy-coverage