Added a tox.ini file allowing to test with different versions

This commit is contained in:
Axel Haustant 2015-04-16 14:09:32 +02:00
parent dfc9dc713c
commit 57f301815d

17
tox.ini Normal file
View File

@ -0,0 +1,17 @@
[tox]
envlist =
{py27,py32,py33,py34,pypy,pypy3}-{mg27,mg28,mg30}-{dj15,dj16,dj17,djdev},
py26-{mg27,mg28,mg30}-{dj15,dj16}
[testenv]
commands =
python setup.py test
deps =
mg27: PyMongo<2.8
mg28: PyMongo>=2.8,<3.0
mg30: PyMongo>=3.0
mgdev: https://github.com/mongodb/mongo-python-driver/tarball/master
dj15: Django<1.6
dj16: Django>=1.6,<1.7
dj17: Django>=1.7,<1.8
djdev: https://github.com/django/django/tarball/master