diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-12-18 21:30:53 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-12-18 21:33:13 +0100 |
commit | 471d030673b2008502c3f5d83d1a16743695bcf4 (patch) | |
tree | 0f05eec4bd3bc2a99a3d5d5c06a8fe4ed896a4f9 | |
parent | 2d0c8cb6eaf10b7c712335beb79fae726ea3a965 (diff) |
Verify Ansible playbooks via ansible-lint
Change-Id: Id8b4553f5d36a52086433f00ce9f846a30212d66
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | test-requirements.txt | 1 | ||||
-rw-r--r-- | tox.ini | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test-requirements.txt b/test-requirements.txt index b071f41e0..067690018 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -9,6 +9,7 @@ pylint # GPLv2 sphinx!=1.6.6,!=1.6.7 # BSD sphinx-rtd-theme yamllint +ansible-lint doc8 # Apache-2.0 bashate # Apache-2.0 nosehtmloutput # Apache-2.0 @@ -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 |