diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = docs,docs-linkcheck +envlist = docs,docs-linkcheck,py27 skipsdist = True [testenv] @@ -7,6 +7,12 @@ usedevelop = False setenv= HOME = {envtmpdir} PYTHONPATH = {toxinidir} +deps = + -chttps://raw.githubusercontent.com/openstack/requirements/stable/queens/upper-constraints.txt + -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=master + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/requirements.txt +install_command = pip install {opts} {packages} [testenv:docs] deps = -r{toxinidir}/docs/requirements.txt @@ -18,3 +24,12 @@ whitelist_externals = echo [testenv:docs-linkcheck] deps = -r{toxinidir}/docs/requirements.txt commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/linkcheck + +[testenv:py27] +commands = nosetests --with-xunit \ + --with-coverage \ + --cover-tests \ + --cover-package=sfc \ + --cover-xml \ + --cover-html \ + sfc/unit_tests/unit |