-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
56 lines (52 loc) · 1.32 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
[tox]
envlist = py{34,35,36,37},flake8,coverage,docs,benchmark
[testenv:py34]
commands = python setup.py test
deps = -rrequirements-tests.txt
[testenv:py35]
commands = python setup.py test
deps = -rrequirements-tests.txt
[testenv:py36]
commands = python setup.py test
deps = -rrequirements-tests.txt
[testenv:py37]
commands = python setup.py test
deps = -rrequirements-tests.txt
[testenv:flake8]
skip_install = true
max-complexity = 10
commands = flake8 --ignore=D400,D205,I201,N812,D401,D413,D208 qatestlink/ tests/
deps = -rrequirements-flake.txt
exclude =
.git,
__pycache__,
docs/source/conf.py,
old,
build,
dist,
logs,
.vscode,
.eggs,
.cache
[testenv:coverage]
description = Environment to generate coverage reports
commands =
py.test --cov=qatestlink tests/ --cov-report html:tests/reports/coverage/ --cov-report xml:tests/reports/coverage.xml --cov-report term
deps = -rrequirements-tests.txt
exclude =
.git,
__pycache__,
docs/source/conf.py,
build,
dist,
logs,
.vscode,
.eggs,
.cache
[testenv:docs]
commands =
python setup.py sdist
check-manifest --ignore tox.ini,tests*,docs*,source-docs*
# twine check dist/*
sphinx-build -M html source-docs/source docs
deps = -rrequirements-docs.txt