mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
Merge f0e424de1c
into c9618cc0f3
This commit is contained in:
commit
3af76ac46f
|
@ -2,7 +2,14 @@ language: python
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.wheelhouse
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
global:
|
||||||
|
- WHEEL_DIR=$HOME/.wheelhouse/
|
||||||
|
matrix:
|
||||||
- TOX_ENV=py27-flake8
|
- TOX_ENV=py27-flake8
|
||||||
- TOX_ENV=py27-docs
|
- TOX_ENV=py27-docs
|
||||||
- TOX_ENV=py34-django17
|
- TOX_ENV=py34-django17
|
||||||
|
@ -31,3 +38,4 @@ install:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- tox -e $TOX_ENV
|
- 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} "$@"
|
3
tox.ini
3
tox.ini
|
@ -6,6 +6,9 @@ envlist =
|
||||||
{py27,py32,py33,py34}-django{17,18beta}
|
{py27,py32,py33,py34}-django{17,18beta}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
install_command =
|
||||||
|
{toxinidir}/custom_pip_install.sh {opts} {packages}
|
||||||
|
|
||||||
commands = ./runtests.py --fast
|
commands = ./runtests.py --fast
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONDONTWRITEBYTECODE=1
|
PYTHONDONTWRITEBYTECODE=1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user