forked from jazzband/django-sortedm2m
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
35 lines (32 loc) · 903 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[tox]
minversion = 1.8
envlist =
py27-{111},
py{35,36,37}-{111,21,22}
[testenv]
deps =
mock<2.0
py27: mysqlclient<1.4
py{35,36,37}: mysqlclient
psycopg2-binary
111: Django>=1.11,<2.0
21: Django>=2.1,<2.2
22: Django>=2.2,<3.0
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/test_project
passenv =
DJANGO_DB_USER
DJANGO_DB_PASSWORD
commands =
# Test against SQLite3, then PostgreSQL, then mySQL.
python -Wd {envbindir}/django-admin.py test --settings=settings --noinput {posargs:sortedm2m_tests}
python -Wd {envbindir}/django-admin.py test --settings=postgres_settings --noinput {posargs:sortedm2m_tests}
python -Wd {envbindir}/django-admin.py test --settings=mysql_settings --noinput {posargs:sortedm2m_tests}
[testenv:quality]
deps =
Django>=2.2,<3.0
-rrequirements/test.txt
whitelist_externals =
make
commands =
make quality