Skip to content

Instantly share code, notes, and snippets.

@roadsideseb
Last active Aug 29, 2015
Embed
What would you like to do?
tox.ini for more than just testing
[tox]
envlist = {py27,py26}-django{14,15,16}-oscar{05,06}-env{test,dev}
[testenv]
basepython =
py26: python2.6
py27: python2.7
deps =
-r{toxinidir}/requirements.txt
oscar05: https://github.com/tangentlabs/django-oscar/archive/releases/0.5.zip
oscar06: https://github.com/tangentlabs/django-oscar/archive/releases/0.6.zip
django14: https://github.com/django/django/archive/stable/1.4.x.zip
django15: https://github.com/django/django/archive/stable/1.5.x.zip
django16: https://github.com/django/django/archive/stable/1.6.x.zip
setenv =
ENV_NAME={envname}
commands =
envtest: py.test {posargs:tests}
envtest: py.test -m browser {posargs:tests}
envdev: python sandbox/manage.py {posargs:runserver}
usedevelop =
envdev: True
envtest: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment