forked from fkie-cad/Logprep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (48 loc) · 1.14 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
[tox]
envlist = unit
[testenv]
basepython = python3.6
deps = -rrequirements_dev.txt
[testenv:unit]
description = Run unit-tests
usedevelop = True
deps = {[testenv]deps}
commands =
pytest -vv tests/unit {posargs}
[testenv:acceptance]
description = Run acceptance-tests
usedevelop = True
deps =
{[testenv]deps}
deepdiff
commands =
pytest -vv -s tests/acceptance {posargs}
[testenv:lint]
description = Run pylint to determine code-quality
usedevelop = True
deps = pylint
commands =
- pylint tests/unit --disable=missing-docstring
- pylint tests/acceptance --disable=missing-docstring
- pylint logprep
[testenv:docs]
description = Build sphinx HTML documentation
changedir = doc
usedevelop = True
whitelist_externals = make
deps =
{[testenv]deps}
sphinx
sphinx_rtd_theme
commands =
sphinx-apidoc -fT -o source/module_reference ../logprep
make clean html
[testenv:all]
description = Run all tests with coverage and lint
usedevelop = True
deps =
{[testenv]deps}
deepdiff
commands =
- pylint logprep
pytest -vv tests --cov=logprep --cov-report=term --cov-report=html --cov-report=xml {posargs}