Update tox.ini with allowlist_externals for 4.x compatibility
[integration.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 68745ff..cdc6595 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,16 +1,20 @@
 [tox]
 minversion = 3.2.0
-envlist = json,yaml,py
+envlist = json,yaml,py,rst,md
 skipsdist = true
 requires = pip >= 8
 
 [testenv]
-basepython = python3
-whitelist_externals =
+basepython = python3.8
+allowlist_externals =
   git
+  sh
+  /bin/sh
   bash
+  /bin/bash
 deps =
   coala-bears
+  nodeenv
 
 [testenv:json]
 commands_pre =
@@ -33,3 +37,20 @@ commands_pre =
     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.py' > /tmp/.coalist_py"
 commands =
     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn py --files $(</tmp/.coalist_py) \ "
+
+[testenv:rst]
+deps =
+    -r{toxinidir}/docs/requirements-docs.txt
+    -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
+    -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
+commands =
+  sphinx-build -W -n -b html docs docs/build/html
+  sphinx-build -W -n -b linkcheck docs docs/build/linkcheck
+
+[testenv:md]
+commands_pre =
+    nodeenv -p --verbose
+    npm install --global remark-cli
+    /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.md' > /tmp/.coalist_md"
+commands =
+    /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn md --files $(</tmp/.coalist_md) \ "