setools/tox.ini
2018-06-15 20:26:49 -04:00

45 lines
1.3 KiB
INI

[tox]
minversion = 1.4
envlist = py34, py35, py36
# Using site packages is not optimal,
# but libselinux bindings are not
# available via PyPI.
# Any issues this hides should be found
# by Travis CI, as that env is minimal.
sitepackages = True
[pep8]
exclude = qpol.py
max-line-length = 100
[testenv:pep8]
deps = pep8
cython>=0.27
commands = pep8 --version
pep8 setools/ setoolsgui/ tests/ seinfo seinfoflow sedta sesearch sediff --statistics
[testenv:coverage]
deps = networkx==2.0
coverage
cython>=0.27
commands = coverage --version
coverage erase
coverage run setup.py test
coverage report
[testenv:lint]
deps = pylint
networkx==2.0
cython>=0.27
commands = {envpython} setup.py build_ext -i
pylint --version
pylint -E --rcfile .pylintrc setools tests seinfo seinfoflow sedta sesearch sediff
# pylint can't see all members introduced by PyQt uic
pylint -E --rcfile .pylintrc --disable=no-member,import-error setoolsgui
[testenv]
deps = networkx==2.0
cython>=0.27
commands = {envpython} setup.py test
recreate = True