X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=blobdiff_plain;f=tox.ini;h=261fdf0820a6dc36ec14e02d83e8551f7a7ba573;hp=465cf5b3ce53606016a5492858d1fb427bcb8bfb;hb=3b6376d6ef6d8e90ad9ef4cc33ab610c501015d2;hpb=d27b72f2341b3b0657b850cc4fc29bb164d8f97a diff --git a/tox.ini b/tox.ini index 465cf5b..261fdf0 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ # =================================================================== # # Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the “License”); +# under the Apache License, Version 2.0 (the "License"); # you may not use this software except in compliance with the License. # You may obtain a copy of the License at # @@ -21,7 +21,7 @@ # # # Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); # you may not use this documentation except in compliance with the License. # You may obtain a copy of the License at # @@ -35,30 +35,35 @@ # # ============LICENSE_END============================================ # -# ECOMP is a trademark and service mark of AT&T Intellectual Property. # [tox] skipsdist=True -envlist = py27,py3,style +envlist = py36 [testenv] +DISPLAY = :0.0 +whitelist_externals = + install_win_deps.py +passenv = + http_proxy + https_proxy distribute = False commands = - {envpython} --version + python install_win_deps.py + pip install -r requirements.txt + {envpython} --version pytest --version coverage run --module pytest ice_validator --self-test -rxXs coverage xml -deps = -rrequirements.txt + flake8 --version + flake8 ice_validator + bandit -c bandit.yaml -r . -x ./.tox/**,./venv-tox/** +deps = --no-use-pep517 flake8 coverage - pytest + bandit -[testenv:style] -commands = flake8 ice_validator - -[testenv:py27] -basepython=python2.7 - -[testenv:py3] -basepython=python3.6 +[flake8] +ignore = W391, W503, E501 +max-line-length = 88