summaryrefslogtreecommitdiffstats
path: root/starlingx/tox.ini
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2019-08-28 19:51:31 +0800
committerHaibin Huang <haibin.huang@intel.com>2019-08-29 10:22:48 +0800
commitf75e4c22cb928d11bd78f15b45b1c42098e588d4 (patch)
tree2bb6072e9890fc5874a79058be997f8bc6a51b02 /starlingx/tox.ini
parent3f9d312fabb805bb16e89b662d5c70efe91c6b79 (diff)
update starlingx plugin to python3
Issue-ID: MULTICLOUD-794 Signed-off-by: Haibin Huang <haibin.huang@intel.com> Change-Id: I41d11465d24ea4d15f37db2146d7a77998f535f0
Diffstat (limited to 'starlingx/tox.ini')
-rw-r--r--starlingx/tox.ini16
1 files changed, 13 insertions, 3 deletions
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"