aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini18
1 files changed, 17 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 68745ff6b..ee7cbe0e6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion = 3.2.0
-envlist = json,yaml,py
+envlist = json,yaml,py,rst,md
skipsdist = true
requires = pip >= 8
@@ -11,6 +11,7 @@ whitelist_externals =
bash
deps =
coala-bears
+ nodeenv
[testenv:json]
commands_pre =
@@ -33,3 +34,18 @@ 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]
+commands_pre =
+ /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.rst' > /tmp/.coalist_rst"
+commands =
+ /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn rst --files $(</tmp/.coalist_rst) \ "
+
+[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) \ "
+