diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-01-31 22:28:13 -0800 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-01-31 22:28:13 -0800 |
commit | 7d0a7a7a343b967c15baaab0a609e41c58317636 (patch) | |
tree | 8783122b411ecddd5107d35e43bf072753b27978 | |
parent | Capture all build output in the logfile, since it is usually useful (diff) | |
download | jitterbug-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 '')
-rwxr-xr-x | scripts/capsule.sh | 3 |
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 } |