4 envlist = py3, pylint, flake8diff
10 OSDF_CONFIG_FILE={toxinidir}/test/config/osdf_config.yaml
12 /bin/bash test/functest/scripts/start-simulators.sh
13 coverage run --module pytest --junitxml xunit-results.xml
14 coverage xml --omit=".tox/py3/*","test/*"
15 coverage report -m --omit=".tox/py3/*","test/*"
16 /bin/bash test/functest/scripts/stop-simulators.sh
17 # TODO: need to update the above "omit" when we package osdf as pip-installable
18 deps = -r{toxinidir}/requirements.txt
19 -r{toxinidir}/test/test-requirements.txt
20 -r{toxinidir}/requirements-osdf.txt
21 -r{toxinidir}/requirements-opteng.txt
24 source=./apps/,./osdf/,osdfapp.py,./runtime/,solverapp.py
27 whitelist_externals=bash
28 commands = bash -c "pylint --reports=y osdf apps runtime| tee pylint.out"
34 whitelist_externals=bash
37 bash -c "files=$(git diff HEAD^ HEAD --diff-filter=d --name-only | grep -E '(^apps\/|osdf\/|runtime\/)'| grep -E '*\.py$'); if [[ -z $files ]]; then exit 0; else flake8 $files; fi"