Add support for tox to run tests against Django 1.X/2.0

This commit is contained in:
Swen Kooij
2018-01-29 13:34:40 +02:00
parent 6a4beca193
commit cd844fccec
4 changed files with 17 additions and 2 deletions

12
tox.ini Normal file
View File

@@ -0,0 +1,12 @@
[tox]
envlist = py35-dj{111,20}
[testenv]
deps =
dj111: Django>=1.11,<1.12
dj20: Django>=2.0,<2.1
-rrequirements/test.txt
setenv =
DJANGO_SETTINGS_MODULE=settings
passenv = DATABASE_URL
commands = coverage run manage.py test