From f75e4c22cb928d11bd78f15b45b1c42098e588d4 Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Wed, 28 Aug 2019 19:51:31 +0800 Subject: update starlingx plugin to python3 Issue-ID: MULTICLOUD-794 Signed-off-by: Haibin Huang Change-Id: I41d11465d24ea4d15f37db2146d7a77998f535f0 --- starlingx/tox.ini | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'starlingx/tox.ini') diff --git a/starlingx/tox.ini b/starlingx/tox.ini index 78dc9675..72c4b46d 100644 --- a/starlingx/tox.ini +++ b/starlingx/tox.ini @@ -13,7 +13,7 @@ # limitations under the License. [tox] -envlist = py27,pep8,cov +envlist = py36,cov,pylint skipsdist = true [tox:jenkins] @@ -25,6 +25,10 @@ exclude = ./venv-tox,./.tox max-complexity = 27 [testenv] +basepython = + py36: python3 + cov: python3 + pylint: python3 setenv = PYTHONPATH = {toxinidir}/../share deps = @@ -36,8 +40,14 @@ commands = [testenv:pep8] deps=flake8 -commands=flake8 +commands=python3 -m flake8 [testenv:cov] -commands = coverage xml --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*starlingx_base*,*common*, *site-packages*" +commands = coverage xml --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*,*starlingx_base* *site-packages*" + +[testenv:pylint] +whitelist_externals = bash +commands = + bash -c "\ + pylint -f parseable --reports=y starlingx | tee pylint.out" -- cgit 1.2.3-korg