Adding yamllint to build checks
[apex.git] / build / Makefile
index 2df4142..1d329fb 100644 (file)
@@ -117,6 +117,15 @@ python-pep8-check:
        pep8 ../lib/python
        pep8 ../tests
 
+#############
+#  YAMLLINT #
+#############
+
+.PHONY: yamllint
+yamllint:
+       @echo "Running yamllint against all .yaml files"
+       cd ../ && yamllint $(shell cd ../ && git ls-tree -r HEAD --name-only | grep 'yaml$$')
+
 ##################
 # NETWORKING-VPP #
 ##################