-
Notifications
You must be signed in to change notification settings - Fork 36
/
tox.ini
65 lines (54 loc) · 1.12 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
[tox]
envlist=py3,doctest
skip_missing_interpreters=True
[pytest]
log_level=info
junit_family=xunit1
[testenv]
setenv =
LONGTESTS=python,any
deps=
pytest
mock
commands=py.test -q -r fEsxXw --durations=10 --junitxml=junit.xml test
[testenv:mypy]
deps=
mypy
commands=python -m mypy ppci
[testenv:flake8]
deps=flake8
changedir={toxinidir}
commands=flake8 ppci
[testenv:lint]
deps=pylint
changedir={toxinidir}
commands=pylint ppci
[testenv:cover]
setenv =
LONGTESTS=x86_64,python,any
deps=
pytest
pytest-cov
mock
commands=
py.test -q -r fEsxXw --durations=10 test --cov={envsitepackagesdir}/ppci --junitxml=junit.xml --cov-report=xml --cov-report=term
[testenv:all]
setenv =
LONGTESTS=all
deps=pytest
commands=py.test -q -r fEsxXw --durations=10 test
[testenv:ut]
setenv =
LONGTESTS=x86_64,python,any
commands=python -m unittest discover test
[testenv:docs]
changedir=docs
deps=
-r{toxinidir}/docs/requirements.txt
commands=
sphinx-build -b html . _build/html
[testenv:doctest]
changedir=docs
deps=
-r{toxinidir}/docs/requirements.txt
commands=sphinx-build -b doctest . _build/doctest