X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=7b0fb07a84358f92d4e56ce99bd2553a4a35eec1;hb=de5fdaafad9fccba0b9a7f308d72f26816dd1a0f;hp=18be3073b046119e22a76c2c7a6c168e7406457e;hpb=ab7a87456538e561d60d209fe534c175ddd0269c;p=optf%2Fosdf.git diff --git a/tox.ini b/tox.ini index 18be307..7b0fb07 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,13 @@ [tox] skipsdist=True -envlist = py3 +envlist = py3, pylint [testenv] distribute = False +basepython=python3 +setenv = + OSDF_CONFIG_FILE={toxinidir}/test/config/osdf_config.yaml commands = /bin/bash test/functest/scripts/start-simulators.sh coverage run --module pytest --junitxml xunit-results.xml @@ -12,11 +15,16 @@ commands = coverage report -m --omit=".tox/py3/*","test/*" /bin/bash test/functest/scripts/stop-simulators.sh # TODO: need to update the above "omit" when we package osdf as pip-installable -deps = -r{toxinidir}/requirements.txt +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