Attempting to fix the tox environments
* Corrected flake8 environment (running through hacking.sh) * Added exception for netaddr for pip 1.5 * Ignoring no-source errors with coverage Change-Id: I2017946fd0db7c69f6a2d8d0be0fc79f3c5d5439
This commit is contained in:
11
tox.ini
11
tox.ini
@@ -1,22 +1,25 @@
|
||||
[tox]
|
||||
envlist = pep8,pyflakes,py27
|
||||
envlist = pep8,py27
|
||||
|
||||
[testenv]
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
PYTHONPATH = {toxinidir}/etc/barbican
|
||||
|
||||
# Required for pip 1.5 | Temporally overriding for netaddr - GitHub #392
|
||||
#install_command = pip install --allow-external netaddr --allow-unverified netaddr {opts} {packages}
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8
|
||||
|
||||
[testenv:py27]
|
||||
commands = nosetests {posargs:--with-xcoverage --all-modules --cover-inclusive --traverse-namespace --with-xunit --cover-package=barbican}
|
||||
|
||||
[testenv:coverage]
|
||||
commands = coverage html {posargs:--include="*barbican*"}
|
||||
|
||||
[testenv:pep8]
|
||||
commands = {toxinidir}/tools/hacking.sh {posargs}
|
||||
|
||||
[flake8]
|
||||
# E711 ignored because of sqlalchemy override of == None
|
||||
# H ignored because it's not H clean
|
||||
|
||||
Reference in New Issue
Block a user