From 7d0a7a7a343b967c15baaab0a609e41c58317636 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Mon, 31 Jan 2011 22:28:13 -0800 Subject: Teach capsule.sh about plain Makefile-based projects This code runs "make test" if a Makefile is present, which should be able to test projects like Git. We should add the ability to change the target name, since many C-based projects use the 'check' target. --- scripts/capsule.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/capsule.sh b/scripts/capsule.sh index d9f1134..ca84d62 100755 --- a/scripts/capsule.sh +++ b/scripts/capsule.sh @@ -37,6 +37,9 @@ function jitterbug_build () { perl Configure.pl >> $logfile 2>&1 cpanm --installdeps . >> $logfile 2>&1 HARNESS_VERBOSE=1 make test >> $logfile 2>&1 + elif [ -f 'Makefile' ]; then + echo "Found a Makefile" + make test >> $logfile 2>&1 fi } -- cgit v1.2.3