Skip to content

Instantly share code, notes, and snippets.

@roadsideseb
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roadsideseb/2050d58db1de5f0f83d4 to your computer and use it in GitHub Desktop.
Save roadsideseb/2050d58db1de5f0f83d4 to your computer and use it in GitHub Desktop.
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