aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-11-03 18:44:31 -0500
committerOle Trøan <otroan@employees.org>2019-11-06 16:40:11 +0000
commit6b0dd5502489c83cc4a0e6e9240b41a9bb3f0ed6 (patch)
tree2f17610529da94fa7bc171fc329093ef76293517 /Makefile
parent7f39e91fe51761aa3dda6cb33ab3bbaa3296d28d (diff)
build: add yaml file linting to make checkstyle
Type: feature fts and trex rely on yaml config files. Verify that they are valid, so comitters can catch errors early. Change-Id: Ide0bb276659119c59bdbbc8b8155e37562a648b8 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1a11da8ceda..b8c8a781997 100644
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,7 @@ DEB_DEPENDS += lcov chrpath autoconf indent clang-format libnuma-dev
DEB_DEPENDS += python-all python3-all python3-setuptools python-dev
DEB_DEPENDS += python-virtualenv python-pip libffi6 check
DEB_DEPENDS += libboost-all-dev libffi-dev python3-ply libmbedtls-dev
-DEB_DEPENDS += cmake ninja-build uuid-dev python3-jsonschema python3-yaml
+DEB_DEPENDS += cmake ninja-build uuid-dev python3-jsonschema python3-yaml yamllint
ifeq ($(OS_VERSION_ID),14.04)
DEB_DEPENDS += libssl-dev
else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-8)
@@ -89,6 +89,7 @@ RPM_DEPENDS += selinux-policy selinux-policy-devel
RPM_DEPENDS += ninja-build
RPM_DEPENDS += libuuid-devel
RPM_DEPENDS += mbedtls-devel
+RPM_DEPENDS += yamllint
ifeq ($(OS_ID),fedora)
RPM_DEPENDS += dnf-utils
@@ -558,6 +559,7 @@ cscope: cscope.files
checkstyle:
@build-root/scripts/checkstyle.sh
+ yamllint $(WS_ROOT)/src
fixstyle:
@build-root/scripts/checkstyle.sh --fix