summaryrefslogtreecommitdiff
path: root/scripts/capsule.pl
blob: 38463da2ffb666113dd292aca3a489abba32a5dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
    },
};