summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorRihab Banday <rihab.banday@ericsson.com>2020-08-12 15:39:02 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-08-12 15:39:02 +0000
commit332652ce8bb53ea580d3a2a1f9b12e7d311ae29b (patch)
tree4525d34e5eec310009581f0c153c5a139d68e88e /tox.ini
parent2269cffee0006eaf7415cb50261f0a1d34e9f37f (diff)
parent15af69c32d0338d7a659ddcf23cfb339973d18e2 (diff)
Merge "Implement linting process"
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini17
1 files changed, 17 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..4c9b4bd
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,17 @@
+[tox]
+minversion = 3.15
+skipsdist = True
+envlist = lint,docs
+
+[testenv]
+passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+
+[testenv:lint]
+deps =
+ {env:BASHATE_INSTALL_PATH:bashate}
+ yamllint
+whitelist_externals = bash
+commands = bash -c "find {toxinidir} \
+ -not -path {toxinidir}/.tox/\* \
+ -name \*.sh | xargs bashate -v"
+ bash -c "yamllint {toxinidir}"