mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
Add pip wheels cache for travis and tox
This commit is contained in:
parent
c9618cc0f3
commit
f0e424de1c
|
@ -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
4
custom_pip_install.sh
Executable 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} "$@"
|
Loading…
Reference in New Issue
Block a user