From 444a89ffc0ea4e67d16ef1378698b92232d50516 Mon Sep 17 00:00:00 2001 From: Dimitrios Markou Date: Mon, 18 Jun 2018 14:11:55 +0300 Subject: Move the yamllint check to tox Until now we were executing the yamllint check through shell commands contained to a builder in the releng repo [0]. This patch moves that check to the tox framework. Additional changes should be done to the sfc jobs in the releng repo. [0]: https://github.com/opnfv/releng/blob/master/jjb/sfc/sfc-project-jobs.yaml#L73 Change-Id: Ie42113087a8c1494593d5510cdf367abe99a7f5b Signed-off-by: Dimitrios Markou --- tox.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 4ec7b2f7..a92fccf2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = docs,docs-linkcheck,py27 +envlist = docs,docs-linkcheck,py27,yamllint skipsdist = True [testenv] @@ -33,3 +33,11 @@ commands = nosetests --with-xunit \ --cover-xml \ --cover-html \ sfc/unit_tests/unit + +[testenv:yamllint] +basepython = python2.7 +files = + docs + sfc/tests/functest +commands = + yamllint -s {[testenv:yamllint]files} -- cgit 1.2.3-korg