mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-20 22:17:03 +00:00
The following has been removed: - HTML report, as it is not used at all and may require to define more environment The following has been added: - py27, py33, py34 specific coverage reports NOTES: - It is possible to use environment generators (http://tox.readthedocs.org/en/latest/config.html#generating-environments-conditional-settings) but this will make the implicit mode run more modes by default. - As referenced at https://bitbucket.org/hpk42/tox/issue/120/substitution-breaks-for-commands, substitution for commands does not work yet. If substitution for commands is implemented someday, the tox.ini file would be simpler.
45 lines
1.2 KiB
INI
45 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 = {[testenv]deps}
|
|
coverage
|
|
commands = coverage --version
|
|
coverage erase
|
|
coverage run setup.py test
|
|
coverage report
|
|
|
|
[testenv:py33-coverage]
|
|
basepython = python3.3
|
|
deps = {[testenv]deps}
|
|
coverage
|
|
commands = coverage --version
|
|
coverage erase
|
|
coverage run setup.py test
|
|
coverage report
|
|
|
|
[testenv:py34-coverage]
|
|
basepython = python3.4
|
|
deps = {[testenv]deps}
|
|
coverage
|
|
commands = coverage --version
|
|
coverage erase
|
|
coverage run setup.py test
|
|
coverage report
|
|
|
|
[testenv]
|
|
deps = networkx==1.9
|
|
commands = {envpython} setup.py test
|
|
recreate = True
|