X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=tox.ini;h=7b0fb07a84358f92d4e56ce99bd2553a4a35eec1;hb=c2b97eaebfcf1f39e1428cdc7b5a3539334087a0;hp=0272bda989b940eabd82173cf76892c7c00ec34a;hpb=c3aa7ebbb6f17c93958103077614f5bdac9837b0;p=optf%2Fosdf.git diff --git a/tox.ini b/tox.ini index 0272bda..7b0fb07 100644 --- a/tox.ini +++ b/tox.ini @@ -1,14 +1,14 @@ [tox] skipsdist=True -envlist = py3 +envlist = py3, pylint [testenv] distribute = False +basepython=python3 setenv = OSDF_CONFIG_FILE={toxinidir}/test/config/osdf_config.yaml commands = - - cat /etc/hosts /bin/bash test/functest/scripts/start-simulators.sh coverage run --module pytest --junitxml xunit-results.xml coverage xml --omit=".tox/py3/*","test/*" @@ -17,9 +17,14 @@ commands = # TODO: need to update the above "omit" when we package osdf as pip-installable deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test/test-requirements.txt + -r{toxinidir}/requirements-opteng.txt [run] -source=./osdf/,osdfapp.py +source=./apps/,./osdf/,osdfapp.py,./runtime/,solverapp.py + +[testenv:pylint] +whitelist_externals=bash +commands = bash -c "pylint --reports=y osdf apps runtime| tee pylint.out" [testenv:py3] basepython=python3.6