Split tox environments (pep8, pylint, py27, py35 and neutron)

- separate pylint tox environment from pep8 one
- separate neutron tox environment from base ones (py27,py35,...)

Change-Id: Ib6e04a6c0d7e49a49c3d4386e15434f4d7b18502
This commit is contained in:
Federico Ressi 2018-11-29 10:11:11 +01:00
parent 999a040e34
commit 6ee6d610dc
3 changed files with 23 additions and 4 deletions

View File

@ -4,4 +4,3 @@
flake8==2.5.5 # MIT
flake8-import-order==0.12 # LGPLv3
pylint>=1.9

5
pylint-requirements.txt Normal file
View File

@ -0,0 +1,5 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pylint>=1.9

21
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
minversion = 2.0
envlist = pep8,py35,py27
envlist = pep8,pylint,py35,py27
[testenv]
@ -23,7 +23,7 @@ whitelist_externals=
commands =
coverage erase
find . -type f -name "*.pyc" -delete
stestr --test-path ./tobiko/tests run {posargs}
stestr --test-path ./tobiko/tests/cmd run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
@ -33,13 +33,18 @@ deps =
-r{toxinidir}/test-requirements.txt
[testenv:neutron]
commands =
stestr --test-path ./tobiko/tests/scenario run {posargs}
[testenv:venv]
basepython = python3
deps =
commands =
/bin/bash {posargs}
{posargs}
[testenv:pep8]
@ -51,6 +56,16 @@ deps =
commands =
flake8
[testenv:pylint]
basepython = python3
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/pylint-requirements.txt
commands =
pylint -E --rcfile=.pylintrc -e W,E tobiko