aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-12-15 15:58:56 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-12-16 07:19:37 +0100
commit3d0fd81e3086ddd09dd1f6c81d53745d80440d39 (patch)
tree755b6791b7f19f684cc73e7bf14582429024014b
parent4ef76478c0dea81c006bf92350e644919d063668 (diff)
Verify the Ansible playbook via ansible-lint
Change-Id: I9e6778b935a0a8d6e76cb4f1f16ef08c811eee73 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit e3d5138f69bbffdff063019dc35c4b760b2c9564)
-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 8b6f767a..0cfead31 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -11,3 +11,4 @@ sphinx-rtd-theme
yamllint
doc8 # Apache-2.0
bashate # Apache-2.0
+ansible-lint
diff --git a/tox.ini b/tox.ini
index e76005b9..24ce6b85 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
skipsdist = True
[testenv]
@@ -43,6 +43,11 @@ files =
commands =
yamllint -s {[testenv:yamllint]files}
+[testenv:ansiblelint]
+basepython = python2.7
+commands =
+ ansible-lint ansible/site.yml
+
[testenv:py36]
commands = nosetests xtesting/tests/unit