Merge "[WIP]Migration to new policy api"
[optf/osdf.git] / tox.ini
1
2 [tox]
3 skipsdist=True
4 envlist = py3, pylint
5
6 [testenv]
7 distribute = False
8 basepython=python3
9 setenv   =
10     OSDF_CONFIG_FILE={toxinidir}/test/config/osdf_config.yaml
11 commands =
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-opteng.txt
21
22 [run]
23 source=./apps/,./osdf/,osdfapp.py,./runtime/,solverapp.py
24
25 [testenv:pylint]
26 whitelist_externals=bash
27 commands = bash -c "pylint --reports=y osdf apps runtime| tee pylint.out"
28
29 [testenv:py3]
30 basepython=python3.6