X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=11c541aa4988358a553e40fd4f87f10f1735404c;hb=b712a135c2d84f5b6361583e75a0cb25493b4585;hp=88b595d4fc116c90a1e38c196b65e27684f89abf;hpb=e245dcdb2419299dc2388f66acb5c93f4df69b5c;p=optf%2Fosdf.git diff --git a/tox.ini b/tox.ini index 88b595d..11c541a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,23 +1,31 @@ [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/*" 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-osdf.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