From 76f88d7bc8f1424f9a218cec66e58ae1af8f72bb Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Tue, 9 Jul 2019 09:39:04 -0500 Subject: [PATCH] Add pre-commit hook to execute tests (#31) --- Makefile | 7 +++++-- githooks/pre-commit | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 githooks/pre-commit diff --git a/Makefile b/Makefile index fcb0cdd5..bac73827 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ -.PHONY: install test clean +.PHONY: githooks install test clean -install: +githooks: + ln -sf ../../githooks/pre-commit .git/hooks/pre-commit + +install: githooks npm install test: diff --git a/githooks/pre-commit b/githooks/pre-commit new file mode 100755 index 00000000..b1c070a5 --- /dev/null +++ b/githooks/pre-commit @@ -0,0 +1 @@ +make test