Fix API spec doc format
[multicloud/framework.git] / multivimbroker / tox.ini
index cda89e4..7ba8967 100644 (file)
@@ -1,12 +1,19 @@
 [tox]
-envlist = py27,pep8
+envlist = py36,pep8,cover
 skipsdist = true
 
 [tox:jenkins]
 downloadcache = ~/cache/pip
 
 [testenv]
-deps = -r{toxinidir}/requirements.txt
+basepython =
+    py36: python3
+    pep8: python3
+    cover: python3
+deps =
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+
 commands =
   /usr/bin/find . -type f -name "*.py[c|o]" -delete
   python manage.py test multivimbroker
@@ -15,9 +22,9 @@ commands =
 deps=flake8
 commands=flake8
 
-[testenv:py27]
-commands =
-  {[testenv]commands}
+[testenv:py27]
+commands =
+  {[testenv]commands}
 
 [testenv:cover]
 setenv=
@@ -25,4 +32,14 @@ setenv=
 commands =
   coverage erase
   {[testenv]commands}
-  coverage xml -i
+  coverage xml -i --omit="*/api_v2/*,./venv-tox/*,./.tox/*,*tests*,*site-packages*"
+
+[testenv:rstcheck]
+deps = rstcheck
+whitelist_externals = bash
+commands = bash -c "find ../docs -not -path {toxinidir}/.tox/\* \
+   -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning"
+
+[testenv:docs]
+deps = sphinx
+commands = sphinx-build -b html ../docs/ ../docs/html

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use