summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-pass.sh14
-rwxr-xr-xscripts/capsule.sh31
2 files changed, 33 insertions, 12 deletions
diff --git a/scripts/build-pass.sh b/scripts/build-pass.sh
new file mode 100755
index 0000000..9f6f2b8
--- /dev/null
+++ b/scripts/build-pass.sh
@@ -0,0 +1,14 @@
+COMMITER=$1
+PROJECT=$2
+MESSAGE=$3
+OUTPUT=$4
+SHA=$5
+CC_EMAIL=$6
+
+echo "
+Message:
+$MESSAGE
+
+Test Output:
+$OUTPUT
+" | mail -c "$CC_EMAIL" -s "[jitterbug] PASS $PROJECT @ $SHA" $COMMITER
diff --git a/scripts/capsule.sh b/scripts/capsule.sh
index abc632d..30c3877 100755
--- a/scripts/capsule.sh
+++ b/scripts/capsule.sh
@@ -2,23 +2,29 @@
# first arg: build_dir
# second arg: report path
+# third arg: should we use perlbrew?
+
+# this is getting smelly
+builddir=$1
+report_path=$2
+perlbrew=$3
function jitterbug_build () {
if [ -f 'dist.ini' ]; then
echo "Found dist.ini, using Dist::Zilla"
- dzil authordeps | cpanm
- cpanm --installdeps .
+ dzil authordeps | cpanm >> $logfile 2>&1
+ cpanm --installdeps . >> $logfile 2>&1
HARNESS_VERBOSE=1 dzil test >> $logfile 2>&1
elif [ -f 'Build.PL' ]; then
echo "Found Build.PL, using Build.PL"
- perl Build.PL
+ perl Build.PL >> $logfile 2>&1
# ./Build installdeps is not available in older Module::Build's
- cpanm --installdeps .
+ cpanm --installdeps . >> $logfile 2>&1
HARNESS_VERBOSE=1 ./Build test --verbose >> $logfile 2>&1
elif [ -f 'Makefile.PL' ]; then
echo "Found Makefile.PL"
- perl Makefile.PL
- cpanm --installdeps .
+ perl Makefile.PL >> $logfile 2>&1
+ cpanm --installdeps . >> $logfile 2>&1
HARNESS_VERBOSE=1 make test >> $logfile 2>&1
elif [ -f 'setup.pir' ]; then
echo "Found setup.pir"
@@ -28,16 +34,17 @@ function jitterbug_build () {
HARNESS_VERBOSE=1 parrot-nqp setup.nqp test >> $logfile 2>&1
elif [ -f 'Configure.pl' ]; then
echo "Found Configure.pl"
- perl Configure.pl
- cpanm --installdeps .
+ 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
+ elif [ -f 'Rakefile' ]; then
+ rake test >> $logfile 2>&1
fi
}
-# this is getting smelly
-builddir=$1
-report_path=$2
-perlbrew=$3
echo "Creating report_path=$report_path"
mkdir -p $report_path