osdf rearchitecture into apps and libs
[optf/osdf.git] / tox.ini
1
2 [tox]
3 skipsdist=True
4 envlist = py3, pylint
5
6 [testenv]
7 distribute = False
8 setenv   =
9     OSDF_CONFIG_FILE={toxinidir}/test/config/osdf_config.yaml
10 commands =
11     /bin/bash test/functest/scripts/start-simulators.sh
12     coverage run --module pytest --junitxml xunit-results.xml
13     coverage xml --omit=".tox/py3/*","test/*"
14     coverage report -m --omit=".tox/py3/*","test/*"
15     /bin/bash test/functest/scripts/stop-simulators.sh
16     # TODO: need to update the above "omit" when we package osdf as pip-installable
17 deps = -r{toxinidir}/requirements.txt
18     -r{toxinidir}/test/test-requirements.txt
19
20 [run]
21 source=./osdf/,osdfapp.py
22
23 [testenv:pylint]
24 whitelist_externals=bash
25 commands = bash -c "pylint --reports=y osdf | tee pylint.out"
26
27 [testenv:py3]
28 basepython=python3.6