X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=23f7c1a84a33db33457fe537d58e07940b574bdc;hb=refs%2Fheads%2Fmaster;hp=e9f5fbb0bd55bbe0035f3aa6ac85d75deae8adce;hpb=8258308ce1b825de056aadb9d2b5e38f9558373a;p=releng.git diff --git a/tox.ini b/tox.ini index e9f5fbb0b..23f7c1a84 100644 --- a/tox.ini +++ b/tox.ini @@ -4,31 +4,25 @@ # and then run "tox" from this directory. [tox] -envlist = py27 +envlist = jjb,docs skipsdist = True [testenv] -usedevelop = True -setenv= - HOME = {envtmpdir} - PYTHONPATH = {toxinidir} +basepython = python3.10 +usedevelop = False +deps = + -chttps://opendev.org/openstack/requirements/raw/branch/stable/zed/upper-constraints.txt + -cupper-constraints.txt + -r{toxinidir}/test-requirements.txt [testenv:jjb] -deps = - -rjjb/test-requirements.txt commands= - jenkins-jobs test -o job_output -r jjb/ + jenkins-jobs test -o {envtmpdir}/job_output -r {toxinidir}/jjb + +[testenv:docs] +commands = + sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/html -[testenv:modules] -deps= - -rmodules/requirements.txt - -rmodules/test-requirements.txt +[testenv:docs-linkcheck] commands = - nosetests -w modules \ - --with-xunit \ - --xunit-file=modules/nosetests.xml \ - --cover-package=opnfv \ - --with-coverage \ - --cover-xml \ - --cover-html \ - tests/unit + sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/linkcheck