From f4127b1235b585b5d82082fcfd820b68479ceba4 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sun, 22 May 2011 23:01:33 -0700 Subject: Add a test to verify we get the expected sha1 --- scripts/capsule.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/capsule.sh b/scripts/capsule.sh index 9fca79e..e6a5036 100755 --- a/scripts/capsule.sh +++ b/scripts/capsule.sh @@ -47,7 +47,6 @@ function jitterbug_build () { fi } - echo "Creating report_path=$report_path" mkdir -p $report_path @@ -60,6 +59,9 @@ if [ $use_perlbrew ]; then theperl=$(perl -e 'print $^V') logfile="$report_path/perl-$theperl.txt" + mkdir -p $report_path + touch $logfile + echo ">perlbrew switch $theperl" perlbrew switch $theperl # TODO: check error condition @@ -69,5 +71,9 @@ if [ $use_perlbrew ]; then else theperl=$(perl -e 'print $^V') logfile="$report_path/perl-$theperl.txt" + + mkdir -p $report_path + touch $logfile + jitterbug_build fi -- cgit 1.4.1 From 28e39448c2b105ed9c1e3489f4672d34218dde20 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Mon, 23 May 2011 20:31:11 -0700 Subject: Unbreak capsule.sh --- scripts/capsule.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'scripts') diff --git a/scripts/capsule.sh b/scripts/capsule.sh index b176ff7..548780e 100755 --- a/scripts/capsule.sh +++ b/scripts/capsule.sh @@ -9,14 +9,12 @@ builddir=$1 report_path=$2 perlbrew=$3 -HARNESS_OPTS="HARNESS_VERBOSE=1 HARNESS_TIMER=1" - function jitterbug_build () { if [ -f 'dist.ini' ]; then echo "Found dist.ini, using Dist::Zilla" dzil authordeps | cpanm >> $logfile 2>&1 cpanm --installdeps . >> $logfile 2>&1 - $HARNESS_OPTS dzil test >> $logfile 2>&1 + HARNESS_VERBOSE=1 HARNESS_TIMER=1 dzil test >> $logfile 2>&1 elif [ -f 'Build.PL' ]; then echo "Found Build.PL, using Build.PL" perl Build.PL >> $logfile 2>&1 @@ -24,23 +22,23 @@ function jitterbug_build () { cpanm --installdeps . >> $logfile 2>&1 # Run this again in case our Build is out of date (suboptimal) perl Build.PL >> $logfile 2>&1 - $HARNESS_OPTS ./Build test --verbose >> $logfile 2>&1 + HARNESS_VERBOSE=1 HARNESS_TIMER=1 ./Build test --verbose >> $logfile 2>&1 elif [ -f 'Makefile.PL' ]; then echo "Found Makefile.PL" perl Makefile.PL >> $logfile 2>&1 cpanm --installdeps . >> $logfile 2>&1 - $HARNESS_OPTS make test >> $logfile 2>&1 + HARNESS_VERBOSE=1 HARNESS_TIMER=1 make test >> $logfile 2>&1 elif [ -f 'setup.pir' ]; then echo "Found setup.pir" - $HARNESS_OPTS parrot setup.pir test >> $logfile 2>&1 + HARNESS_VERBOSE=1 HARNESS_TIMER=1 parrot setup.pir test >> $logfile 2>&1 elif [ -f 'setup.nqp' ]; then echo "Found setup.nqp" - $HARNESS_OPTS parrot-nqp setup.nqp test >> $logfile 2>&1 + HARNESS_VERBOSE=1 HARNESS_TIMER=1 parrot-nqp setup.nqp test >> $logfile 2>&1 elif [ -f 'Configure.pl' ]; then echo "Found Configure.pl" perl Configure.pl >> $logfile 2>&1 cpanm --installdeps . >> $logfile 2>&1 - $HARNESS_OPTS make test >> $logfile 2>&1 + HARNESS_VERBOSE=1 HARNESS_TIMER=1 make test >> $logfile 2>&1 elif [ -f 'Makefile' ]; then echo "Found a Makefile" make test >> $logfile 2>&1 -- cgit 1.4.1