Add pip wheels cache for travis and tox

This commit is contained in:
konradko 2015-03-22 13:31:36 +00:00
parent c9618cc0f3
commit f0e424de1c
3 changed files with 15 additions and 0 deletions

View File

@ -2,7 +2,14 @@ language: python
sudo: false
cache:
directories:
- $HOME/.wheelhouse
env:
global:
- WHEEL_DIR=$HOME/.wheelhouse/
matrix:
- TOX_ENV=py27-flake8
- TOX_ENV=py27-docs
- TOX_ENV=py34-django17
@ -31,3 +38,4 @@ install:
script:
- tox -e $TOX_ENV
- rm -rf $WHEEL_DIR/djangorestframework*.whl

4
custom_pip_install.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
pip install wheel==0.24.0
pip wheel --wheel-dir=${WHEEL_DIR} --find-links=${WHEEL_DIR} "$@"
pip install --no-index --find-links=${WHEEL_DIR} "$@"

View File

@ -6,6 +6,9 @@ envlist =
{py27,py32,py33,py34}-django{17,18beta}
[testenv]
install_command =
{toxinidir}/custom_pip_install.sh {opts} {packages}
commands = ./runtests.py --fast
setenv =
PYTHONDONTWRITEBYTECODE=1