mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 04:54:00 +03:00
Merge pull request #2123 from NextHub/master
Remove boilerplate code from tox config
This commit is contained in:
commit
85f5e79cf3
52
.travis.yml
52
.travis.yml
|
@ -1,40 +1,40 @@
|
|||
language: python
|
||||
|
||||
python: 2.7
|
||||
|
||||
sudo: false
|
||||
|
||||
env:
|
||||
- TOX_ENV=flake8
|
||||
- TOX_ENV=py3.4-django1.7
|
||||
- TOX_ENV=py3.3-django1.7
|
||||
- TOX_ENV=py3.2-django1.7
|
||||
- TOX_ENV=py2.7-django1.7
|
||||
- TOX_ENV=py3.4-django1.6
|
||||
- TOX_ENV=py3.3-django1.6
|
||||
- TOX_ENV=py3.2-django1.6
|
||||
- TOX_ENV=py2.7-django1.6
|
||||
- TOX_ENV=py2.6-django1.6
|
||||
- TOX_ENV=py3.4-django1.5
|
||||
- TOX_ENV=py3.3-django1.5
|
||||
- TOX_ENV=py3.2-django1.5
|
||||
- TOX_ENV=py2.7-django1.5
|
||||
- TOX_ENV=py2.6-django1.5
|
||||
- TOX_ENV=py2.7-django1.4
|
||||
- TOX_ENV=py2.6-django1.4
|
||||
- TOX_ENV=py3.4-djangomaster
|
||||
- TOX_ENV=py3.3-djangomaster
|
||||
- TOX_ENV=py2.7-djangomaster
|
||||
- TOX_ENV=py27-flake8
|
||||
- TOX_ENV=py34-django1.7
|
||||
- TOX_ENV=py33-django1.7
|
||||
- TOX_ENV=py32-django1.7
|
||||
- TOX_ENV=py27-django1.7
|
||||
- TOX_ENV=py34-django1.6
|
||||
- TOX_ENV=py33-django1.6
|
||||
- TOX_ENV=py32-django1.6
|
||||
- TOX_ENV=py27-django1.6
|
||||
- TOX_ENV=py26-django1.6
|
||||
- TOX_ENV=py34-django1.5
|
||||
- TOX_ENV=py33-django1.5
|
||||
- TOX_ENV=py32-django1.5
|
||||
- TOX_ENV=py27-django1.5
|
||||
- TOX_ENV=py26-django1.5
|
||||
- TOX_ENV=py27-django1.4
|
||||
- TOX_ENV=py26-django1.4
|
||||
- TOX_ENV=py34-djangomaster
|
||||
- TOX_ENV=py33-djangomaster
|
||||
- TOX_ENV=py32-djangomaster
|
||||
- TOX_ENV=py27-djangomaster
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- env: TOX_ENV=py3.4-djangomaster
|
||||
- env: TOX_ENV=py3.3-djangomaster
|
||||
- env: TOX_ENV=py2.7-djangomaster
|
||||
- env: TOX_ENV=py34-djangomaster
|
||||
- env: TOX_ENV=py33-djangomaster
|
||||
- env: TOX_ENV=py32-djangomaster
|
||||
- env: TOX_ENV=py27-djangomaster
|
||||
|
||||
install:
|
||||
- "pip install tox --download-cache $HOME/.pip-cache"
|
||||
- pip install tox
|
||||
|
||||
script:
|
||||
- tox -e $TOX_ENV
|
||||
|
|
192
tox.ini
192
tox.ini
|
@ -1,181 +1,31 @@
|
|||
[tox]
|
||||
downloadcache = {toxworkdir}/cache/
|
||||
envlist =
|
||||
flake8,
|
||||
py3.4-django1.7,py3.3-django1.7,py3.2-django1.7,py2.7-django1.7,
|
||||
py3.4-django1.6,py3.3-django1.6,py3.2-django1.6,py2.7-django1.6,py2.6-django1.6,
|
||||
py3.4-django1.5,py3.3-django1.5,py3.2-django1.5,py2.7-django1.5,py2.6-django1.5,
|
||||
py2.7-django1.4,py2.6-django1.4,
|
||||
py3.4-djangomaster,py3.3-djangomaster,py2.7-djangomaster
|
||||
py27-flake8,
|
||||
{py26,py27}-django1.4,
|
||||
{py26,py27,py32,py33,py34}-django{1.5,1.6},
|
||||
{py27,py32,py33,py34}-django{1.7,master}
|
||||
|
||||
[testenv]
|
||||
commands = ./runtests.py --fast
|
||||
setenv =
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
deps =
|
||||
django1.4: django==1.4.11
|
||||
django1.5: django==1.5.6
|
||||
django1.6: Django==1.6.3
|
||||
django1.7: Django==1.7
|
||||
djangomaster: https://github.com/django/django/zipball/master
|
||||
{py26,py27}-django{1.4,1.5,1.6,1.7}: django-guardian==1.2.3
|
||||
{py26,py27}-django{1.4,1.5,1.6}: oauth2==1.5.211
|
||||
{py26,py27}-django{1.4,1.5,1.6}: django-oauth-plus==2.2.1
|
||||
{py26,py27}-django{1.4,1.5}: django-oauth2-provider==0.2.3
|
||||
{py26,py27}-django1.6: django-oauth2-provider==0.2.4
|
||||
pytest-django==2.6.1
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
|
||||
[testenv:flake8]
|
||||
basepython = python2.7
|
||||
deps = pytest==2.5.2
|
||||
[testenv:py27-flake8]
|
||||
deps =
|
||||
pytest==2.5.2
|
||||
flake8==2.2.2
|
||||
commands = ./runtests.py --lintonly
|
||||
|
||||
[testenv:py3.4-django1.7]
|
||||
basepython = python3.4
|
||||
deps = Django==1.7
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.3-django1.7]
|
||||
basepython = python3.3
|
||||
deps = Django==1.7
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.2-django1.7]
|
||||
basepython = python3.2
|
||||
deps = Django==1.7
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py2.7-django1.7]
|
||||
basepython = python2.7
|
||||
deps = Django==1.7
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
# django-oauth-plus==2.2.1
|
||||
# oauth2==1.5.211
|
||||
# django-oauth2-provider==0.2.4
|
||||
django-guardian==1.2.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.4-django1.6]
|
||||
basepython = python3.4
|
||||
deps = Django==1.6.3
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.3-django1.6]
|
||||
basepython = python3.3
|
||||
deps = Django==1.6.3
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.2-django1.6]
|
||||
basepython = python3.2
|
||||
deps = Django==1.6.3
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py2.7-django1.6]
|
||||
basepython = python2.7
|
||||
deps = Django==1.6.3
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
django-oauth-plus==2.2.1
|
||||
oauth2==1.5.211
|
||||
django-oauth2-provider==0.2.4
|
||||
django-guardian==1.2.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py2.6-django1.6]
|
||||
basepython = python2.6
|
||||
deps = Django==1.6.3
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
django-oauth-plus==2.2.1
|
||||
oauth2==1.5.211
|
||||
django-oauth2-provider==0.2.4
|
||||
django-guardian==1.2.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.4-django1.5]
|
||||
basepython = python3.4
|
||||
deps = django==1.5.6
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.3-django1.5]
|
||||
basepython = python3.3
|
||||
deps = django==1.5.6
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.2-django1.5]
|
||||
basepython = python3.2
|
||||
deps = django==1.5.6
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py2.7-django1.5]
|
||||
basepython = python2.7
|
||||
deps = django==1.5.6
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
django-oauth-plus==2.2.1
|
||||
oauth2==1.5.211
|
||||
django-oauth2-provider==0.2.3
|
||||
django-guardian==1.2.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py2.6-django1.5]
|
||||
basepython = python2.6
|
||||
deps = django==1.5.6
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
django-oauth-plus==2.2.1
|
||||
oauth2==1.5.211
|
||||
django-oauth2-provider==0.2.3
|
||||
django-guardian==1.2.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py2.7-django1.4]
|
||||
basepython = python2.7
|
||||
deps = django==1.4.11
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
django-oauth-plus==2.2.1
|
||||
oauth2==1.5.211
|
||||
django-oauth2-provider==0.2.3
|
||||
django-guardian==1.2.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py2.6-django1.4]
|
||||
basepython = python2.6
|
||||
deps = django==1.4.11
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
django-oauth-plus==2.2.1
|
||||
oauth2==1.5.211
|
||||
django-oauth2-provider==0.2.3
|
||||
django-guardian==1.2.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.4-djangomaster]
|
||||
basepython = python3.4
|
||||
deps = https://github.com/django/django/zipball/master
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py3.3-djangomaster]
|
||||
basepython = python3.3
|
||||
deps = https://github.com/django/django/zipball/master
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
||||
[testenv:py2.7-djangomaster]
|
||||
basepython = python3.2
|
||||
deps = https://github.com/django/django/zipball/master
|
||||
django-filter==0.7
|
||||
defusedxml==0.3
|
||||
pytest-django==2.6.1
|
||||
|
|
Loading…
Reference in New Issue
Block a user