summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-06-24 16:05:10 +0300
committerMaxim Devaev <[email protected]>2022-06-24 16:05:10 +0300
commit9f4c2412049e21ed6d1bd0237ba1d98ea338f7bb (patch)
tree9e12351602400f60d4ac3406d0292effb5844c1e /testenv
parentf8e90369860cadef10744d6c4fe98bea0fc6260b (diff)
shellcheck
Diffstat (limited to 'testenv')
-rw-r--r--testenv/Dockerfile1
-rw-r--r--testenv/tox.ini6
2 files changed, 6 insertions, 1 deletions
diff --git a/testenv/Dockerfile b/testenv/Dockerfile
index 36d0fb3a..874f84a0 100644
--- a/testenv/Dockerfile
+++ b/testenv/Dockerfile
@@ -60,6 +60,7 @@ RUN pacman --noconfirm --ask=4 -Syy \
socat \
eslint \
npm \
+ shellcheck \
&& (pacman -Sc --noconfirm || true) \
&& rm -rf /var/cache/pacman/pkg/*
diff --git a/testenv/tox.ini b/testenv/tox.ini
index e0eb0d53..2e904e0e 100644
--- a/testenv/tox.ini
+++ b/testenv/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = flake8, pylint, mypy, vulture, pytest, eslint, htmlhint
+envlist = flake8, pylint, mypy, vulture, pytest, eslint, htmlhint, shellcheck
skipsdist = true
[testenv]
@@ -60,3 +60,7 @@ commands = eslint --cache-location=/tmp --config=testenv/linters/eslintrc.yaml -
[testenv:htmlhint]
whitelist_externals = htmlhint
commands = htmlhint --config=testenv/linters/htmlhint.json web/*.html web/*/*.html
+
+[testenv:shellcheck]
+whitelist_externals = bash
+commands = bash -c 'shellcheck --color=always scripts/*'