forked from darklow/django-suit
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
52 lines (44 loc) · 1.02 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
[tox]
setenv =
DJANGO_SETTINGS_MODULE = suit.tests.settings
envlist =
py39-django{11,31}
; flake8
; flakeplus
; apicheck
; linkcheck
; pydocstyle
cov
[travis:env]
DJANGO =
1.11: django11
3.1: django31
[testenv]
deps=
-r{toxinidir}/requirements-dev.txt
cov: coverage
django11: Django<2.0,>=1.11
django31: Django<3.2,>=3.1
linkcheck,apicheck: -r{toxinidir}/requirements/docs.txt
flake8,flakeplus,pydocstyle: -r{toxinidir}/requirements/pkgutils.txt
sitepackages = False
recreate = False
commands =
pip list
#pytest -xv
{envbindir}/python {toxinidir}/manage.py test suit
[testenv:flake8]
basepython = python3.9
commands =
{envbindir}/python -m flake8 {toxinidir}/suit {toxinidir}/t
[testenv:pydocstyle]
basepython = python3.9
commands =
pydocstyle {toxinidir}/suit
[testenv:cov]
basepython = python3.9
usedevelop = true
commands =
pip install Django==3.1
#pytest -x --cov=suit --cov-report=xml --no-cov-on-fail
coverage run -p manage.py test suit