mirror of
https://github.com/SELinuxProject/setools
synced 2025-05-04 09:10:22 +00:00
tox.ini: Refine "pre" commands and passenv usage.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
parent
893cdd5477
commit
ceedee4c57
6
tox.ini
6
tox.ini
@ -13,20 +13,22 @@ commands = pycodestyle setools/ setoolsgui/ tests/ tests-gui/ seinfo sein
|
|||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
setenv = SETOOLS_COVERAGE = 1
|
setenv = SETOOLS_COVERAGE = 1
|
||||||
|
passenv = {[testenv]passenv}
|
||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
coverage>=5.0
|
coverage>=5.0
|
||||||
extras = toml
|
extras = toml
|
||||||
commands_pre = coverage --version
|
commands_pre = coverage --version
|
||||||
coverage erase
|
coverage erase
|
||||||
{envpython} setup.py build_ext -i
|
{[testenv]commands_pre}
|
||||||
commands = coverage run -m pytest tests tests-gui
|
commands = coverage run -m pytest tests tests-gui
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
|
passenv = {[testenv]passenv}
|
||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
pylint>=2.8.0
|
pylint>=2.8.0
|
||||||
commands_pre = pylint --version
|
commands_pre = pylint --version
|
||||||
{envpython} setup.py build_ext -i
|
{[testenv]commands_pre}
|
||||||
commands = pylint -E setools setoolsgui tests tests-gui seinfo seinfoflow sedta sesearch sediff sechecker apol
|
commands = pylint -E setools setoolsgui tests tests-gui seinfo seinfoflow sedta sesearch sediff sechecker apol
|
||||||
|
|
||||||
[testenv:mypy]
|
[testenv:mypy]
|
||||||
|
Loading…
Reference in New Issue
Block a user