-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBuild.PL
81 lines (72 loc) · 3.56 KB
/
Build.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -*- mode: cperl; tab-width: 8; indent-tabs-mode: nil; basic-offset: 2 -*-
# vim:ts=8:sw=2:et:sta:sts=2
#########
# Author: rmp
# Last Modified: $Date$
# Id: $Id$
# $HeadURL$
#
use strict;
use warnings;
use Module::Build;
use Carp;
use English qw(-no_match_vars);
our $VERSION = q[1.0.0];
my $class = Module::Build->subclass(
class => 'Module::Build::Barcoding',
code => <<'SUBCLASS' );
sub run_tap_harness {
my ($self, $tests) = @_;
require TAP::Harness::JUnit;
# TODO allow the test @INC to be set via our API?
my $aggregate = TAP::Harness::JUnit->new({
lib => [@INC],
verbosity => $self->{properties}{verbose},
switches => [ $self->harness_switches ],
%{ $self->tap_harness_args },
})->runtests(@$tests);
return $aggregate;
}
SUBCLASS
my $builder = $class->new(
module_name => 'barcoding',
dist_author => 'Dan Turner <[email protected]>',
dist_version => $VERSION,
dist_abstract => q[Barcoding for Amplicons],
license => 'open_source', # mpl-2 - see license.md
requires => {
'strict' => '1.03',
'warnings' => '1.05',
'Bio::Perl' => '1.006922',
'Carp' => '1.04',
'English' => '1.02',
'Getopt::Long' => '2.35',
'Readonly' => '1.03',
'Text::LevenshteinXS' => '0.03',
},
recommends => {
},
configure_requires => {
'Module::Build' => 0.38,
},
build_requires => {
'Test::More' => '0.62',
'TAP::Harness::JUnit' => '0.41',
'IO::Capture' => '0.05',
},
build_recommends => {
'Test::Distribution' => '2.00',
'Test::Perl::Critic' => '1.01',
},
script_files => [qw(bin/split_barcodes.pl)],
# sign => 1,
recursive_test_files => 1,
use_tap_harness => 1,
tap_harness_args => {
jobs => 10,
verbosity => 1,
merge => 1,
xmlfile => 'tap-harness-junit.xml',
},
);
$builder->create_build_script();