From 0893ba5fb27794d0cbb90e28bb7c184e6f3c695f Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Sat, 23 May 2015 14:35:46 +0200 Subject: [PATCH] Use pip cache in travis. --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index e6e65e3..4caf1d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ env: - DATABASE_URL=postgresql+psycopg2://postgres@127.0.0.1/dataset - DATABASE_URL=mysql+mysqlconnector://travis@127.0.0.1/dataset?charset=utf8 install: +- pip install -U pip wheel - pip install --allow-external mysql-connector-python mysql-connector-python flake8 psycopg2 before_script: - sh -c "if [ '$DATABASE_URL' = 'postgresql+psycopg2://postgres@127.0.0.1/dataset' ]; then psql -c 'DROP DATABASE IF EXISTS dataset;' -U postgres; fi" @@ -17,3 +18,6 @@ before_script: script: - flake8 --ignore=E501,E123,E124,E126,E127,E128 dataset test - python setup.py test +cache: + directories: + - $HOME/.cache/pip