Last active
August 29, 2015 14:05
-
-
Save roadsideseb/2050d58db1de5f0f83d4 to your computer and use it in GitHub Desktop.
tox.ini for more than just testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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