diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,8 +1,8 @@ [tox] minversion = 3.2.0 -envlist = json,yaml,py,md +envlist = json,yaml,py,md,js skipsdist = true -requires = pip >= 8 +requires = pip >= 20 [testenv] basepython = python3 @@ -42,3 +42,11 @@ commands_pre = /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) \ " + +[testenv:js] +commands_pre = + nodeenv -p --verbose + npm install --global jshint + /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.js' > /tmp/.coalist_js" +commands = + /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn -m MAJOR js --files $(</tmp/.coalist_js) \ " |