Apex: Fix CSIT snapshot files path
[releng.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index e9f5fbb..0cc9e23 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -4,31 +4,28 @@
 # and then run "tox" from this directory.
 
 [tox]
-envlist = py27
+envlist = jjb,docs,docs-linkcheck
 skipsdist = True
 
 [testenv]
-usedevelop = True
+usedevelop = False
 setenv=
   HOME = {envtmpdir}
   PYTHONPATH = {toxinidir}
 
 [testenv:jjb]
 deps =
-       -rjjb/test-requirements.txt
+  jenkins-job-builder==2.5.0
 commands=
-       jenkins-jobs test -o job_output -r jjb/
+  jenkins-jobs test -o job_output -r {posargs:"jjb/"}
 
-[testenv:modules]
-deps=
-       -rmodules/requirements.txt
-       -rmodules/test-requirements.txt
+[testenv:docs]
+deps = -r{toxinidir}/docs/requirements.txt
 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 html -n -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/html
+    echo "Generated docs available in {toxinidir}/docs/_build/html"
+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