This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
forked from pytest-dev/pytest-django
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
87 lines (75 loc) · 2.11 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
81
82
83
84
85
86
87
[tox]
envlist =
- py{35,36}-dj{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
- py{36,py27}-checkqa
[testenv]
deps =
pytest>=3.0,<3.4
django-configurations==2.0
pytest-xdist==1.15
{env:_PYTESTDJANGO_TOX_EXTRA_DEPS:}
djmaster: https://github.com/django/django/archive/master.tar.gz
dj20: Django>=2.0a1,<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
setenv =
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
# Ref: https://github.com/pytest-dev/pytest-django/pull/412#issuecomment-340077539
COV_CORE_SOURCE={toxinidir}
COV_CORE_CONFIG={toxinidir}/.coveragerc
COV_CORE_DATAFILE={toxinidir}/.coverage.eager
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
passenv = PYTEST_ADDOPTS
usedevelop = True
commands =
pytest --strict {posargs:tests}
[testenv:checkqa]
deps =
flake8
commands =
flake8 --version
flake8 --show-source --statistics {posargs:pytest_django pytest_django_test}
[testenv:doc8]
basepython = python3.6
skip_install = true
deps =
sphinx
doc8
commands =
doc8 docs/
[testenv:readme]
basepython = python3.5
deps =
readme_renderer
commands =
python setup.py check -r -s
# Release tooling
[testenv:build]
basepython = python3.6
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py -q sdist bdist_wheel
[testenv:release]
basepython = python3.5
skip_install = true
deps =
{[testenv:build]deps}
twine >= 1.9.1
commands =
{[testenv:build]commands}
twine upload -s --skip-existing dist/*