/
tox.ini
38 lines (32 loc) · 796 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
[tox]
envlist =
coverage-clean,
py{36,37,38}-django{22,31,32}-{mysql,postgres,mssql},
coverage-report,
flake8
[testenv]
commands = coverage run --include='*/django_comment_migrate/*' {envbindir}/django-admin.py test tests
deps =
flake8
django22: django>=2.2.17,<2.3
django30: django>=3.0.0,<3.1
django31: django>=3.1.0,<3.2
psycopg2==2.8.6
mysql: pymysql>=0.10.1
coverage
mssql-django
setenv =
PYTHONPATH = {toxinidir}
DJANGO_SETTINGS_MODULE=tests.settings
mysql: TEST_DB_ENGINE=mysql
postgres: TEST_DB_ENGINE=postgres
mssql: TEST_DB_ENGINE=mssql
[testenv:flake8]
commands = flake8
deps = flake8
[testenv:coverage-clean]
commands = coverage erase
[testenv:coverage-report]
commands =
coverage report
coverage html