Improved tox configuration
tox.ini is now similar to the one from Nailgun's code: * renamed 'pep8' env * added 'venv' env to run any command * replaced pep8 script with flake8 * flake8 conf inside tox.ini * updated requirements for new tox.ini Change-Id: I74c9b7f7bd137b6284e4e3dd5c131f348b564d78 Partial-Bug: #1404892
This commit is contained in:
parent
249574cdda
commit
7c9a83539c
|
@ -66,7 +66,7 @@ function run_tests {
|
|||
|
||||
function run_pep8 {
|
||||
echo "Running pep8 ..."
|
||||
tox -eflake8 -v
|
||||
tox -epep8 -v
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
-r requirements.txt
|
||||
mock==1.0.1
|
||||
pep8==1.4.6
|
||||
tox==1.5.0
|
||||
flake8
|
||||
tox>=1.7.1
|
||||
coverage==3.6
|
||||
fabric
|
||||
bottle
|
||||
bottle
|
||||
|
|
28
tox.ini
28
tox.ini
|
@ -5,17 +5,27 @@
|
|||
|
||||
[tox]
|
||||
minversion = 1.6
|
||||
envlist = flake8
|
||||
envlist = pep8
|
||||
skipsdist = True
|
||||
|
||||
[flake8]
|
||||
show-source = True
|
||||
exclude = .tox
|
||||
|
||||
[testenv]
|
||||
commands = nosetests fuel_plugin/testing/tests/unit fuel_plugin/testing/tests/functional/tests.py:AdapterTests
|
||||
usedevelop = True
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands =
|
||||
nosetests {posargs:fuel_plugin/testing/tests}
|
||||
|
||||
[testenv:flake8]
|
||||
deps = flake8
|
||||
commands = flake8
|
||||
[testenv:venv]
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
commands = {posargs:}
|
||||
|
||||
[testenv:pep8]
|
||||
usedevelop = False
|
||||
commands =
|
||||
flake8 {posargs}
|
||||
|
||||
[flake8]
|
||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,__init__.py,docs
|
||||
show-pep8 = True
|
||||
show-source = True
|
||||
count = True
|
||||
|
|
Loading…
Reference in New Issue