2015-02-04 13:22:43 +00:00
|
|
|
[tox]
|
2015-02-16 10:13:25 +00:00
|
|
|
minversion = 1.4
|
|
|
|
envlist = py27, py33, py34
|
2015-05-08 19:21:00 +00:00
|
|
|
# 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
|
2015-02-16 10:13:25 +00:00
|
|
|
|
|
|
|
[pep8]
|
|
|
|
exclude = qpol.py
|
|
|
|
max-line-length = 100
|
2015-02-04 13:22:43 +00:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2015-02-16 10:13:25 +00:00
|
|
|
deps = pep8
|
|
|
|
commands = pep8 --version
|
2015-06-03 17:33:11 +00:00
|
|
|
pep8 setools/ setoolsgui/ tests/ seinfo seinfoflow sedta sesearch --statistics
|
2015-02-16 10:13:25 +00:00
|
|
|
|
2015-04-06 14:07:22 +00:00
|
|
|
[testenv:coverage]
|
2015-02-16 10:13:25 +00:00
|
|
|
basepython = python3.3
|
2015-02-16 21:55:08 +00:00
|
|
|
deps = networkx==1.9
|
2015-02-16 10:13:25 +00:00
|
|
|
coverage
|
|
|
|
commands = coverage --version
|
|
|
|
coverage erase
|
|
|
|
coverage run setup.py test
|
|
|
|
coverage report
|
2015-02-04 13:22:43 +00:00
|
|
|
|
2015-04-06 13:38:58 +00:00
|
|
|
[testenv:lint]
|
2015-04-06 14:58:42 +00:00
|
|
|
basepython = python3.3
|
2015-04-06 13:38:58 +00:00
|
|
|
deps = pylint
|
|
|
|
networkx==1.9
|
2015-12-01 14:38:08 +00:00
|
|
|
mock
|
2015-12-02 17:44:45 +00:00
|
|
|
commands = {envpython} setup.py build_ext -i
|
|
|
|
pylint --version
|
2015-04-06 14:58:42 +00:00
|
|
|
pylint -E --rcfile .pylintrc setools tests seinfo seinfoflow sedta sesearch
|
2015-06-03 17:33:11 +00:00
|
|
|
# pylint can't see all members introduced by PyQt uic
|
2015-12-01 14:38:08 +00:00
|
|
|
pylint -E --rcfile .pylintrc --disable=no-member,import-error setoolsgui
|
2015-02-04 13:22:43 +00:00
|
|
|
|
|
|
|
[testenv]
|
2015-02-16 10:13:25 +00:00
|
|
|
deps = networkx==1.9
|
2015-02-16 21:31:18 +00:00
|
|
|
py27: mock
|
2015-02-16 10:13:25 +00:00
|
|
|
commands = {envpython} setup.py test
|