Updated to be compatible with Django 1.4.5, added tox settings for automated testing with Python 2.6/2.7 and Django 1.4/1.5.

This commit is contained in:
Chris Church
2013-06-22 16:27:09 -04:00
parent 939cbf31ef
commit d822287609
8 changed files with 104 additions and 8 deletions

37
tox.ini Normal file
View File

@@ -0,0 +1,37 @@
[tox]
envlist =
py26-dj14, py27-dj14, py26-dj15, py27-dj15
[testenv]
commands = python manage.py test main
deps =
-r{toxinidir}/requirements/test.txt
setenv =
DJANGO_SETTINGS_MODULE = ansibleworks.settings.development
# For OS X to be able to install pycrypto.
CFLAGS=-I/opt/local/include
downloadcache = {toxworkdir}/cache
[testenv:py26-dj14]
basepython = python2.6
deps =
Django==1.4.5
{[testenv]deps}
[testenv:py27-dj14]
basepython = python2.7
deps =
Django==1.4.5
{[testenv]deps}
[testenv:py26-dj15]
basepython = python2.6
deps =
Django==1.5.1
{[testenv]deps}
[testenv:py27-dj15]
basepython = python2.7
deps =
Django==1.5.1
{[testenv]deps}