diff options
-rwxr-xr-x | scripts/capsule.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |