summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test-requirements.txt1
-rw-r--r--tox.ini7
2 files changed, 7 insertions, 1 deletions
diff --git a/test-requirements.txt b/test-requirements.txt
index 5dcc8dd9a..9750fd77f 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -9,6 +9,7 @@ pylint # GPLv2
sphinx!=1.6.6,>=1.6.2 # BSD
sphinx-rtd-theme
yamllint
+ansible-lint
doc8>=0.6.0 # Apache-2.0
bashate>=0.5.1 # Apache-2.0
nosehtmloutput>=0.0.3 # Apache-2.0
diff --git a/tox.ini b/tox.ini
index 2b6c953c7..cfd6b955b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = docs,pep8,pylint,yamllint,bashate,py27,perm,cover
+envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,perm,cover
[testenv]
usedevelop = True
@@ -88,6 +88,11 @@ files =
commands =
yamllint -s {[testenv:yamllint]files}
+[testenv:ansiblelint]
+basepython = python2.7
+commands =
+ ansible-lint ansible/site.yml
+
[testenv:py36]
dirs =
functest/tests/unit/ci