about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-01-31 22:28:13 -0800
committerJonathan "Duke" Leto <jonathan@leto.net>2011-01-31 22:28:13 -0800
commit7d0a7a7a343b967c15baaab0a609e41c58317636 (patch)
tree8783122b411ecddd5107d35e43bf072753b27978 /scripts
parentCapture all build output in the logfile, since it is usually useful (diff)
downloadjitterbug-7d0a7a7a343b967c15baaab0a609e41c58317636.tar.gz
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/capsule.sh3
1 files changed, 3 insertions, 0 deletions
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
 }