summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/capsule.pl19
1 files changed, 19 insertions, 0 deletions
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 =<<CMD;
+ dzil authordeps | cpanm >> $logfile 2>&1
+ cpanm --installdeps . >> $logfile 2>&1
+ HARNESS_VERBOSE=1 dzil test >> $logfile 2>&1
+CMD
+ },
+};