summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-12-18 21:30:53 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-12-18 21:50:10 +0100
commitc78c849ac90b81689095b5c4a382e9fc7f45cc2f (patch)
tree727f2e5696de7ea76efe632e1c2445565d9fe82f /tox.ini
parent7849ac422c14ed05a5f96baed7d3b846e0059c3a (diff)
Verify Ansible playbooks via ansible-lint
Change-Id: Id8b4553f5d36a52086433f00ce9f846a30212d66 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 471d030673b2008502c3f5d83d1a16743695bcf4)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini7
1 files changed, 6 insertions, 1 deletions
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