cepheid

An Aurora 4X clone
Log | Files | Refs | README

commit 30628da7e4d20ce04ed2586822634534c9bb4bb8
parent 08e2e960a1e8fb8dc76e55a7133539566408137a
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 27 Nov 2022 23:07:03 +0000

Pre-commit hook to run tests

Diffstat:
Mdev/config.mk | 5++++-
Adev/pre-commit | 3+++
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev/config.mk b/dev/config.mk @@ -3,10 +3,13 @@ CFLAGS += -DDEBUG CFLAGS += -DCHECK_FRAME_MEM_FREE ARGS = -all: tags checks +all: tags checks .git/hooks/pre-commit tags: $(SRC) ctags --exclude=data/*.h --exclude=data/icons/*.h -R . +.git/hooks/pre-commit: dev/pre-commit + cp $< $@ + checks: $(SRC) ./dev/checkalloc.sh diff --git a/dev/pre-commit b/dev/pre-commit @@ -0,0 +1,3 @@ +#!/bin/sh + +make test || exit 1