From 42e1adacc2288d85a89fc4571f685f5bde1d2920 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sat, 30 Apr 2011 12:19:52 -0700 Subject: Start converting capsule.sh to perl --- scripts/capsule.pl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/capsule.pl diff --git a/scripts/capsule.pl b/scripts/capsule.pl new file mode 100644 index 0000000..38463da --- /dev/null +++ b/scripts/capsule.pl @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +my ($build_dir, $report_path, $perlbrew) = @ARGV; + +my $logfile; + +my $build_dispatch = { + 'dist.ini' => sub { + print "Found dist.ini, using Dist::Zilla\n"; + my $cmd =<> $logfile 2>&1 + cpanm --installdeps . >> $logfile 2>&1 + HARNESS_VERBOSE=1 dzil test >> $logfile 2>&1 +CMD + }, +}; -- cgit 1.4.1