From 6ee6d610dc01fa2e2ca28bbd910a61a582b5b805 Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Thu, 29 Nov 2018 10:11:11 +0100 Subject: [PATCH] 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 --- pep8-requirements.txt | 1 - pylint-requirements.txt | 5 +++++ tox.ini | 21 ++++++++++++++++++--- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 pylint-requirements.txt diff --git a/pep8-requirements.txt b/pep8-requirements.txt index ad15a55a5..c10070760 100644 --- a/pep8-requirements.txt +++ b/pep8-requirements.txt @@ -4,4 +4,3 @@ flake8==2.5.5 # MIT flake8-import-order==0.12 # LGPLv3 -pylint>=1.9 diff --git a/pylint-requirements.txt b/pylint-requirements.txt new file mode 100644 index 000000000..a18a6491f --- /dev/null +++ b/pylint-requirements.txt @@ -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 diff --git a/tox.ini b/tox.ini index 181d77820..4b2a9ae4c 100644 --- a/tox.ini +++ b/tox.ini @@ -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