2015-02-04 13:22:43 +00:00
|
|
|
[tox]
|
2015-02-16 10:13:25 +00:00
|
|
|
minversion = 1.4
|
2017-09-16 18:19:32 +00:00
|
|
|
envlist = py34, py35, py36
|
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
|
2018-01-07 16:08:42 +00:00
|
|
|
cython>=0.27
|
2015-02-16 10:13:25 +00:00
|
|
|
commands = pep8 --version
|
2015-12-18 16:21:13 +00:00
|
|
|
pep8 setools/ setoolsgui/ tests/ seinfo seinfoflow sedta sesearch sediff --statistics
|
2015-02-16 10:13:25 +00:00
|
|
|
|
2015-04-06 14:07:22 +00:00
|
|
|
[testenv:coverage]
|
2018-03-06 01:33:02 +00:00
|
|
|
setenv = SETOOLS_COVERAGE = 1
|
2017-09-23 18:03:26 +00:00
|
|
|
deps = networkx==2.0
|
2018-03-06 01:33:02 +00:00
|
|
|
coverage>=4.0
|
2017-12-20 16:30:32 +00:00
|
|
|
cython>=0.27
|
2015-02-16 10:13:25 +00:00
|
|
|
commands = coverage --version
|
|
|
|
coverage erase
|
2018-03-06 01:33:02 +00:00
|
|
|
coverage run setup.py test -q
|
2015-02-16 10:13:25 +00:00
|
|
|
coverage report
|
2015-02-04 13:22:43 +00:00
|
|
|
|
2015-04-06 13:38:58 +00:00
|
|
|
[testenv:lint]
|
|
|
|
deps = pylint
|
2017-09-23 18:03:26 +00:00
|
|
|
networkx==2.0
|
2017-12-20 16:30:32 +00:00
|
|
|
cython>=0.27
|
2015-12-02 17:44:45 +00:00
|
|
|
commands = {envpython} setup.py build_ext -i
|
|
|
|
pylint --version
|
2015-12-18 16:21:13 +00:00
|
|
|
pylint -E --rcfile .pylintrc setools tests seinfo seinfoflow sedta sesearch sediff
|
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]
|
2018-06-19 00:25:14 +00:00
|
|
|
passenv = USERSPACE_SRC
|
2017-09-23 18:03:26 +00:00
|
|
|
deps = networkx==2.0
|
2017-12-20 16:30:32 +00:00
|
|
|
cython>=0.27
|
2015-02-16 10:13:25 +00:00
|
|
|
commands = {envpython} setup.py test
|
2015-12-17 16:02:37 +00:00
|
|
|
recreate = True
|