X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fceph-detect-init%2Ftox.ini;fp=src%2Fceph%2Fsrc%2Fceph-detect-init%2Ftox.ini;h=dd631a27d8461be586717ce38a57b03be68dea5e;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/ceph-detect-init/tox.ini b/src/ceph/src/ceph-detect-init/tox.ini new file mode 100644 index 0000000..dd631a2 --- /dev/null +++ b/src/ceph/src/ceph-detect-init/tox.ini @@ -0,0 +1,31 @@ +[tox] +envlist = pep8,py27,py3 +skip_missing_interpreters = True + +[testenv] +basepython = + py27: python2.7 + py3: python3 +setenv = VIRTUAL_ENV={envdir} +usedevelop = true +deps = + {env:NO_INDEX:} + --use-wheel + --find-links=file://{toxinidir}/wheelhouse + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands = coverage run --source=ceph_detect_init {envbindir}/py.test -v tests + coverage report --show-missing --fail-under=100 + +[testenv:pep8] +basepython = python2 +commands = flake8 ceph_detect_init tests + +[testenv:integration] +basepython = python2 +setenv = VIRTUAL_ENV={envdir} +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands = {envbindir}/py.test -v integration/test_main.py