forked from jazzband/django-sortedm2m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (37 loc) · 1021 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
35
36
37
38
39
40
41
[tox]
envlist =
py{36,37,38}-{21,22,30,trunk}
[testenv]
deps =
mysqlclient
psycopg2-binary
21: Django==2.1.*
22: Django==2.2.*
30: Django==3.0.*
trunk: https://github.com/django/django/archive/master.tar.gz
ignore_outcome =
trunk: True
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
[testenv:dist-validation]
deps =
twine>=3.1.1
commands =
python setup.py sdist
twine check dist/*