aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitrios Markou <mardim@intracom-telecom.com>2018-06-18 14:11:55 +0300
committerDimitrios Markou <mardim@intracom-telecom.com>2018-06-21 06:09:39 +0000
commit444a89ffc0ea4e67d16ef1378698b92232d50516 (patch)
treec28a28f5ca7f8baf8fd133c36fa9cbc6c37daf5b
parentee231b97dbb139ae31d9967b8f3a8ac9611256b0 (diff)
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 <mardim@intracom-telecom.com>
-rw-r--r--test-requirements.txt1
-rw-r--r--tox.ini10
2 files changed, 10 insertions, 1 deletions
diff --git a/test-requirements.txt b/test-requirements.txt
index 66d1b33a..f435e104 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -4,3 +4,4 @@
coverage!=4.4,>=4.0 # Apache-2.0
mock>=2.0.0 # BSD
nose>=1.3.7 # LGPL
+yamllint
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}