forked from pytest-dev/pytest-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
80 lines (68 loc) · 2.05 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[tox]
envlist =
py39-dj{31,30,22}-postgres
py38-dj{31,30,22}-postgres
py37-dj{31,30,22}-postgres
py36-dj{31,30,22}-postgres
py35-dj{22}-postgres
checkqa
[testenv]
extras = testing
deps =
djmaster: https://github.com/django/django/archive/master.tar.gz
dj31: Django>=3.1,<3.2
dj30: Django>=3.0,<3.1
dj22: Django>=2.2,<2.3
mysql_myisam: mysqlclient==1.4.2.post1
mysql_innodb: mysqlclient==1.4.2.post1
!pypy3-postgres: psycopg2-binary
pypy3-postgres: psycopg2cffi
coverage: coverage-enable-subprocess
pytest54: pytest>=5.4,<5.5
xdist: pytest-xdist>=1.15
setenv =
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
mysql_innodb: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_mysql_innodb
mysql_myisam: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_mysql_myisam
postgres: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_postgres
sqlite: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite
sqlite_file: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite_file
coverage: PYTESTDJANGO_TEST_RUNNER=coverage run -m pytest
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
coverage: COVERAGE_FILE={toxinidir}/.coverage
coverage: PYTESTDJANGO_COVERAGE_SRC={toxinidir}/
passenv = PYTEST_ADDOPTS TERM TEST_DB_USER TEST_DB_PASSWORD TEST_DB_HOST
usedevelop = True
commands =
coverage: coverage erase
{env:PYTESTDJANGO_TEST_RUNNER:pytest} {posargs:tests}
coverage: coverage combine
coverage: coverage report
coverage: coverage xml
[testenv:checkqa]
extras =
deps =
flake8
commands =
flake8 --version
flake8 --statistics {posargs:pytest_django pytest_django_test tests}
[testenv:doc8]
extras =
basepython = python3.8
skip_install = true
deps =
sphinx
doc8
commands =
doc8 docs/
[testenv:docs]
deps =
extras = docs
commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html
[testenv:readme]
extras =
basepython = python3.8
deps =
readme_renderer
commands =
python setup.py check -r -s