summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2022-09-21 12:24:33 +0200
committerMauro Sardara <msardara@cisco.com>2022-09-21 10:31:17 +0000
commit45da502db58f712b78e59c214f05c44aa01ea8d0 (patch)
tree34acf756801cd7d1c697f6803312c6129dcd0d82 /Makefile
parent6233c9ce9808a82894d85a9774d71ee6dfc53921 (diff)
ci: add commit check
Check the format of commit is conventional commit compliant Ticket: HICN-791 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I56b0884c1bb84ef29adc55a5f07eafb3763eff43
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9a8087473..712a3392c 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ FUNCTIONAL := tests/run-functional.sh
MKDIR := mkdir -p
RM := rm
VERSIONFILE := $(CURDIR)/versions.cmake
+COMMIT_TEMPLATE_FILE = .git_commit_template.txt
# Docker stuff
DOCKER := docker
@@ -82,12 +83,16 @@ help:
@echo " SONAR_BUILD_WRAPPER=$(SONAR_BUILD_WRAPPER)"
@echo " SONAR_OUT_DIR=$(SONAR_OUT_DIR)"
+.PHONY = commit-template
+commit-template:
+ @git config commit.template $(COMMIT_TEMPLATE_FILE)
+
.PHONY = vpp-dep
vpp-dep:
VERSION_PATH=$(VERSIONFILE) sudo -E $(SHELL) scripts/install-vpp.sh
.PHONY = dep
-dep: vpp-dep
+dep: vpp-dep commit-template
ifeq ($(shell uname),Darwin)
brew install $(MACOS_DEPENDS)
else ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID))