Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 85 lines (73 sloc) 1.728 kB
c9f4d31 @guillaumeaubert Released version 1.0.0.
authored
1 use 5.006;
2 use strict;
3 use warnings;
ec9c34f @guillaumeaubert Updated Build.PL to handle release tests as part of disttest.
authored
4
c9f4d31 @guillaumeaubert Released version 1.0.0.
authored
5 use Module::Build;
6
ec9c34f @guillaumeaubert Updated Build.PL to handle release tests as part of disttest.
authored
7
8 my $class = Module::Build->subclass(
9 code =>
10 q|
11 # Override 'test' to support running extended tests in the xt/
12 # directory.
13 sub ACTION_test
14 {
15 my ( $self ) = @_;
16dd38b @guillaumeaubert Whitespace cleanup.
authored
16
ec9c34f @guillaumeaubert Updated Build.PL to handle release tests as part of disttest.
authored
17 $self->recursive_test_files(1);
16dd38b @guillaumeaubert Whitespace cleanup.
authored
18
ec9c34f @guillaumeaubert Updated Build.PL to handle release tests as part of disttest.
authored
19 $self->test_files( 't', 'xt' )
20 if $ENV{'RELEASE_TESTING'};
16dd38b @guillaumeaubert Whitespace cleanup.
authored
21
ec9c34f @guillaumeaubert Updated Build.PL to handle release tests as part of disttest.
authored
22 return $self->SUPER::ACTION_test();
23 }
16dd38b @guillaumeaubert Whitespace cleanup.
authored
24
ec9c34f @guillaumeaubert Updated Build.PL to handle release tests as part of disttest.
authored
25 # Force running extended tests when testing the distribution.
26 sub ACTION_disttest
27 {
28 my ( $self ) = @_;
16dd38b @guillaumeaubert Whitespace cleanup.
authored
29
ec9c34f @guillaumeaubert Updated Build.PL to handle release tests as part of disttest.
authored
30 local $ENV{ RELEASE_TESTING } = 1;
16dd38b @guillaumeaubert Whitespace cleanup.
authored
31
ec9c34f @guillaumeaubert Updated Build.PL to handle release tests as part of disttest.
authored
32 return $self->SUPER::ACTION_disttest();
33 }
34 |,
35 );
36
37 my $builder = $class->new(
c9f4d31 @guillaumeaubert Released version 1.0.0.
authored
38 module_name => 'IPC::Concurrency::DBI',
7235505 @guillaumeaubert Relicensed as GPLv3.
authored
39 license => 'GPL_3',
c9f4d31 @guillaumeaubert Released version 1.0.0.
authored
40 dist_author => q{Guillaume Aubert <aubertg@cpan.org>},
41 dist_version_from => 'lib/IPC/Concurrency/DBI.pm',
42 build_requires =>
43 {
8b1ce0a @guillaumeaubert Formatting.
authored
44 'DBD::SQLite' => 0,
45 'DBI' => 0,
46 'Test::Exception' => 0,
0aa459b @guillaumeaubert Added Test::FailWarnings to all tests.
authored
47 'Test::FailWarnings' => 0,
8b1ce0a @guillaumeaubert Formatting.
authored
48 'Test::More' => 0,
c9f4d31 @guillaumeaubert Released version 1.0.0.
authored
49 },
50 requires =>
51 {
8b1ce0a @guillaumeaubert Formatting.
authored
52 'Carp' => 0,
53 'Data::Dumper' => 0,
2613aa1 @guillaumeaubert Added Data::Validate::Type prerequisite.
authored
54 'Data::Validate::Type' => 0,
8b1ce0a @guillaumeaubert Formatting.
authored
55 'perl' => 5.006,
c9f4d31 @guillaumeaubert Released version 1.0.0.
authored
56 },
57 add_to_cleanup =>
58 [
59 'IPC-Concurrency-DBI-*',
60 ],
61 create_makefile_pl => 'traditional',
b60dcd0 @guillaumeaubert Added various meta information.
authored
62 configure_requires =>
63 {
64 'Module::Build' => 0,
65 },
66 meta_merge =>
67 {
68 resources =>
69 {
e25d219 @guillaumeaubert Moved repository to GitHub.
authored
70 repository => 'https://github.com/guillaumeaubert/IPC-Concurrency-DBI',
b60dcd0 @guillaumeaubert Added various meta information.
authored
71 homepage => 'https://metacpan.org/release/IPC-Concurrency-DBI',
75aed36 @guillaumeaubert Updated links to point to GitHub's issue tracker.
authored
72 bugtracker => 'https://github.com/guillaumeaubert/IPC-Concurrency-DBI/issues',
b60dcd0 @guillaumeaubert Added various meta information.
authored
73 },
26a701b @guillaumeaubert Added noindex to the build.
authored
74 no_index =>
75 {
76 file =>
77 [
78 't/LocalTest.pm',
79 ],
80 },
b60dcd0 @guillaumeaubert Added various meta information.
authored
81 },
c9f4d31 @guillaumeaubert Released version 1.0.0.
authored
82 );
83
84 $builder->create_build_script();
Something went wrong with that request. Please try again.