From 3a9161f147b99465dfecfff1259fe3aadc1d09bc Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Tue, 4 Jan 2011 17:23:50 -0800 Subject: Add some debug output to capsule.sh --- scripts/capsule.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') diff --git a/scripts/capsule.sh b/scripts/capsule.sh index b4be0d9..b103a6a 100755 --- a/scripts/capsule.sh +++ b/scripts/capsule.sh @@ -6,6 +6,7 @@ builddir=$1 report_path=$2 +echo "Creating report_path=$report_path" mkdir -p $report_path cd $builddir @@ -15,20 +16,26 @@ source $HOME/perl5/perlbrew/etc/bashrc for perl in $HOME/perl5/perlbrew/perls/perl-5.* do theperl="$(basename $perl)" + + echo ">perlbrew switch $theperl" perlbrew switch $theperl + # TODO: check error condition perlversion=$(perl -v) logfile="$report_path/$theperl.txt" if [ -f 'dist.ini' ]; then + echo "Found dist.ini, using Dist::Zilla" dzil authordeps | cpanm cpanm --installdeps . HARNESS_VERBOSE=1 dzil test >> $logfile 2>&1 elif [ -f 'Build.PL' ]; then + echo "Found Build.PL, using Build.PL" perl Build.PL ./Build installdeps HARNESS_VERBOSE=1 ./Build test >> $logfile 2>&1 else + echo "Hoping to find Makefile.PL" perl Makefile.PL cpanm --installdeps . make -- cgit 1.4.1