mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
260 lines
5.2 KiB
INI
260 lines
5.2 KiB
INI
#This file is very NON-DRY because tox currently doesn't support interpolation like configparser does.
|
|
#There's a ticket covering this at http://code.google.com/p/pytox/issues/detail?id=17#c0
|
|
|
|
[tox]
|
|
envlist=
|
|
py25-django12,
|
|
py26-django12,
|
|
py27-django12,
|
|
py25-django13,
|
|
py26-django13,
|
|
py27-django13,
|
|
py25-django14a1,
|
|
py26-django14a1,
|
|
py27-django14a1,
|
|
py25-django12e,
|
|
py26-django12e,
|
|
py27-django12e,
|
|
py25-django13e,
|
|
py26-django13e,
|
|
py27-django13e
|
|
py25-django14a1e,
|
|
py26-django14a1e,
|
|
py27-django14a1e
|
|
|
|
########################################### CORE TESTS ############################################
|
|
|
|
[testenv]
|
|
commands=
|
|
python setup.py test
|
|
|
|
[testenv:py25-django12]
|
|
basepython=python2.5
|
|
deps=
|
|
django==1.2.4
|
|
coverage==3.4
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
# Optional packages:
|
|
markdown
|
|
|
|
[testenv:py26-django12]
|
|
basepython=python2.6
|
|
deps=
|
|
django==1.2.4
|
|
coverage==3.4
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
# Optional packages:
|
|
markdown
|
|
|
|
[testenv:py27-django12]
|
|
basepython=python2.7
|
|
deps=
|
|
django==1.2.4
|
|
coverage==3.4
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
# Optional packages:
|
|
markdown
|
|
|
|
[testenv:py25-django13]
|
|
basepython=python2.5
|
|
deps=
|
|
django==1.3
|
|
coverage==3.4
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
# Optional packages:
|
|
markdown
|
|
|
|
[testenv:py26-django13]
|
|
basepython=python2.6
|
|
deps=
|
|
django==1.3
|
|
coverage==3.4
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
# Optional packages:
|
|
markdown
|
|
|
|
[testenv:py27-django13]
|
|
basepython=python2.7
|
|
deps=
|
|
django==1.3
|
|
coverage==3.4
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
# Optional packages:
|
|
markdown
|
|
|
|
[testenv:py25-django14a1]
|
|
basepython=python2.5
|
|
deps=
|
|
http://www.djangoproject.com/download/1.4-alpha-1/tarball/
|
|
coverage==3.4
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
# Optional packages:
|
|
markdown
|
|
|
|
[testenv:py26-django14a1]
|
|
basepython=python2.6
|
|
deps=
|
|
http://www.djangoproject.com/download/1.4-alpha-1/tarball/
|
|
coverage==3.4
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
# Optional packages:
|
|
markdown
|
|
|
|
[testenv:py27-django14a1]
|
|
basepython=python2.7
|
|
deps=
|
|
http://www.djangoproject.com/download/1.4-alpha-1/tarball/
|
|
coverage==3.4
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
# Optional packages:
|
|
markdown
|
|
|
|
####################################### EXAMPLES ################################################
|
|
|
|
[testenv:py25-django12-examples]
|
|
basepython=python2.5
|
|
commands=
|
|
python examples/runtests.py
|
|
deps=
|
|
django==1.2.4
|
|
coverage==3.4
|
|
wsgiref==0.1.2
|
|
Pygments==1.4
|
|
httplib2==0.6.0
|
|
Markdown==2.0.3
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
|
|
[testenv:py26-django12-examples]
|
|
basepython=python2.6
|
|
commands=
|
|
python examples/runtests.py
|
|
deps=
|
|
django==1.2.4
|
|
coverage==3.4
|
|
wsgiref==0.1.2
|
|
Pygments==1.4
|
|
httplib2==0.6.0
|
|
Markdown==2.0.3
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
|
|
[testenv:py27-django12-examples]
|
|
basepython=python2.7
|
|
commands=
|
|
python examples/runtests.py
|
|
deps=
|
|
django==1.2.4
|
|
coverage==3.4
|
|
wsgiref==0.1.2
|
|
Pygments==1.4
|
|
httplib2==0.6.0
|
|
Markdown==2.0.3
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
|
|
[testenv:py25-django13-examples]
|
|
basepython=python2.5
|
|
commands=
|
|
python examples/runtests.py
|
|
deps=
|
|
django==1.3
|
|
coverage==3.4
|
|
wsgiref==0.1.2
|
|
Pygments==1.4
|
|
httplib2==0.6.0
|
|
Markdown==2.0.3
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
|
|
[testenv:py26-django13-examples]
|
|
basepython=python2.6
|
|
commands=
|
|
python examples/runtests.py
|
|
deps=
|
|
django==1.3
|
|
coverage==3.4
|
|
wsgiref==0.1.2
|
|
Pygments==1.4
|
|
httplib2==0.6.0
|
|
Markdown==2.0.3
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
|
|
[testenv:py27-django13-examples]
|
|
basepython=python2.7
|
|
commands=
|
|
python examples/runtests.py
|
|
deps=
|
|
django==1.3
|
|
coverage==3.4
|
|
wsgiref==0.1.2
|
|
Pygments==1.4
|
|
httplib2==0.6.0
|
|
Markdown==2.0.3
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
|
|
[testenv:py25-django14a1-examples]
|
|
basepython=python2.5
|
|
commands=
|
|
python examples/runtests.py
|
|
deps=
|
|
http://www.djangoproject.com/download/1.4-alpha-1/tarball/
|
|
coverage==3.4
|
|
wsgiref==0.1.2
|
|
Pygments==1.4
|
|
httplib2==0.6.0
|
|
Markdown==2.0.3
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
|
|
[testenv:py26-django14a1-examples]
|
|
basepython=python2.6
|
|
commands=
|
|
python examples/runtests.py
|
|
deps=
|
|
http://www.djangoproject.com/download/1.4-alpha-1/tarball/
|
|
coverage==3.4
|
|
wsgiref==0.1.2
|
|
Pygments==1.4
|
|
httplib2==0.6.0
|
|
Markdown==2.0.3
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
|
|
[testenv:py27-django14a1-examples]
|
|
basepython=python2.7
|
|
commands=
|
|
python examples/runtests.py
|
|
deps=
|
|
http://www.djangoproject.com/download/1.4-alpha-1/tarball/
|
|
coverage==3.4
|
|
wsgiref==0.1.2
|
|
Pygments==1.4
|
|
httplib2==0.6.0
|
|
Markdown==2.0.3
|
|
unittest-xml-reporting==1.2
|
|
Pyyaml==3.10
|
|
|
|
##########################################DOCS#################################################
|
|
|
|
[testenv:docs]
|
|
basepython=python
|
|
changedir=docs
|
|
deps=
|
|
sphinx
|
|
pytest
|
|
django==1.3
|
|
commands=
|
|
py.test --tb=line -v --junitxml=junit-{envname}.xml check_sphinx.py
|