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.1 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 =
py{37}-dj{22,21,20,111}-postgres
py{35,36}-dj{22,21,20,111,110,19,18}-postgres
py34-dj{20,111,110}-postgres
py27-dj{111,110}-{mysql_innodb,mysql_myisam,postgres}
py27-dj{111,110,19,18}-postgres
checkqa
[testenv]
extras = testing
deps =
djmaster: https://github.com/django/django/archive/master.tar.gz
dj22: Django>=2.2a1,<2.3
dj21: Django>=2.1,<2.2
dj20: Django>=2.0,<2.1
dj111: Django>=1.11,<1.12
dj110: Django>=1.10,<1.11
dj19: Django>=1.9,<1.10
dj18: Django>=1.8,<1.9
mysql_myisam: mysql-python==1.2.5
mysql_innodb: mysql-python==1.2.5
postgres: psycopg2-binary
coverage: coverage-enable-subprocess
pytest41: pytest>=4.1,<4.2
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
usedevelop = True
commands =
coverage: coverage erase
{env:PYTESTDJANGO_TEST_RUNNER:pytest} {posargs:tests}
coverage: coverage combine
coverage: coverage report
coverage: coverage xml
[testenv:checkqa]
deps =
flake8
commands =
flake8 --version
flake8 --statistics {posargs:pytest_django pytest_django_test tests}
[testenv:doc8]
basepython = python3.6
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]
basepython = python3.5
deps =
readme_renderer
commands =
python setup.py check -r -s