Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / ceph-detect-init / tox.ini
1 [tox]
2 envlist = pep8,py27,py3
3 skip_missing_interpreters = True
4
5 [testenv]
6 basepython =
7     py27: python2.7
8     py3: python3
9 setenv = VIRTUAL_ENV={envdir}
10 usedevelop = true
11 deps =
12   {env:NO_INDEX:}
13   --use-wheel
14   --find-links=file://{toxinidir}/wheelhouse
15   -r{toxinidir}/requirements.txt
16   -r{toxinidir}/test-requirements.txt
17
18 commands = coverage run --source=ceph_detect_init {envbindir}/py.test -v tests
19            coverage report --show-missing --fail-under=100
20
21 [testenv:pep8]
22 basepython = python2
23 commands = flake8 ceph_detect_init tests
24
25 [testenv:integration]
26 basepython = python2
27 setenv = VIRTUAL_ENV={envdir}
28 deps = -r{toxinidir}/requirements.txt
29   -r{toxinidir}/test-requirements.txt
30
31 commands = {envbindir}/py.test -v integration/test_main.py