From c7eefd48e449d8de5e4c43dc532c5e434f361764 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 5 Oct 2015 08:49:07 -0700 Subject: [PATCH] Take advantage of the travis-ci cache feature --- .travis.yml | 14 +++++++++----- tox.ini | 1 - 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 90ed92e8..6d190892 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,14 +5,18 @@ env: # These should match the tox env list - TOXENV=py33 - TOXENV=py34 - TOXENV=pypy -install: pip install coveralls tox --use-mirrors +install: pip install coveralls tox script: tox # Special snowflake. Our tests depend on making real commits. before_install: - - git config --global user.name "Travis CI" - - git config --global user.email "user@example.com" - # Our tests inspect some of *our* git history - - git fetch --unshallow + - git config --global user.name "Travis CI" + - git config --global user.email "user@example.com" + # Our tests inspect some of *our* git history + - git fetch --unshallow after_success: - coveralls sudo: false +cache: + directories: + - $HOME/.cache/pip + - $HOME/.pre-commit diff --git a/tox.ini b/tox.ini index b68d9272..f4fa0b08 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,6 @@ project = pre_commit envlist = py26,py27,py33,py34,pypy [testenv] -install_command = pip install --use-wheel {opts} {packages} deps = -rrequirements-dev.txt passenv = HOME HOMEPATH LANG TERM commands =