mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-15 19:48:06 +00:00
Not necessary for CI testing, as the environment is always completely recreated. Developers can add '-r' to their command lines to recreate the environments when needed. The CI testing should catch issues if something works locally only due to an environment anomaly.
46 lines
1.2 KiB
INI
46 lines
1.2 KiB
INI
[tox]
|
|
minversion = 1.4
|
|
envlist = py27, py33, py34
|
|
|
|
[pep8]
|
|
exclude = qpol.py
|
|
max-line-length = 100
|
|
|
|
[testenv:pep8]
|
|
deps = pep8
|
|
commands = pep8 --version
|
|
pep8 setools/ tests/ seinfo seinfoflow sedta sesearch --statistics -v
|
|
|
|
[testenv:py27-coverage]
|
|
basepython = python2.7
|
|
deps = networkx==1.9
|
|
mock
|
|
coverage
|
|
commands = coverage --version
|
|
coverage erase
|
|
coverage run setup.py test
|
|
coverage report
|
|
|
|
[testenv:py33-coverage]
|
|
basepython = python3.3
|
|
deps = networkx==1.9
|
|
coverage
|
|
commands = coverage --version
|
|
coverage erase
|
|
coverage run setup.py test
|
|
coverage report
|
|
|
|
[testenv:py34-coverage]
|
|
basepython = python3.4
|
|
deps = networkx==1.9
|
|
coverage
|
|
commands = coverage --version
|
|
coverage erase
|
|
coverage run setup.py test
|
|
coverage report
|
|
|
|
[testenv]
|
|
deps = networkx==1.9
|
|
py27: mock
|
|
commands = {envpython} setup.py test
|