forked from sosreport/sos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (52 loc) · 1.39 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 = flake8
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
python_magic
setenv =
PYTHONPATH = {toxinidir}/tests:{toxinidir}
avocado_cmd =
avocado run -p TESTLOCAL=true --max-parallel-tasks=1
stage_tests =
{toxinidir}/tests/cleaner_tests \
{toxinidir}/tests/collect_tests \
{toxinidir}/tests/report_tests \
{toxinidir}/tests/vendor_tests
py_files =
setup.py plugins_overview.py sos tests
foreman_tests =
{toxinidir}/tests/product_tests/foreman
[testenv:flake8]
deps = flake8
commands = flake8 {posargs:{[testenv]py_files}}
[testenv:pylint]
deps =
{[testenv]deps}
pylint
commands = pylint -v --rcfile={toxinidir}/pylintrc {posargs:{[testenv]py_files}}
[testenv:unit_tests]
basepython = python3
commands =
avocado run tests/unittests
[testenv:stageone_tests]
basepython = python3
commands =
{[testenv]avocado_cmd} -t stageone {posargs:{[testenv]stage_tests}}
[testenv:stagetwo_tests]
basepython = python3
sitepackages = True
commands =
{[testenv]avocado_cmd} -t stagetwo {posargs:{[testenv]stage_tests}}
[testenv:foreman_tests]
basepython = python3
commands =
{[testenv]avocado_cmd} -t foreman {posargs:{[testenv]foreman_tests}}
[testenv:nosetests]
basepython = python3
deps =
{[testenv]deps}
nose3
commands =
nosetests -v --with-coverage --cover-package=sos tests/unittests --cover-html