| 1 | # | ||||||||||||||||||||||||||||
| 2 | # This file is part of Dist-Zilla-Plugin-Test-Compile | ||||||||||||||||||||||||||||
| 3 | # | ||||||||||||||||||||||||||||
| 4 | # This software is copyright (c) 2009 by Jérôme Quelin. | ||||||||||||||||||||||||||||
| 5 | # | ||||||||||||||||||||||||||||
| 6 | # This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||||||||||
| 7 | # the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||||||||||
| 8 | # | ||||||||||||||||||||||||||||
| 9 | 19 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | 19 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | package Dist::Zilla::Plugin::Test::Compile; # git description: v2.058-19-g3dcf7cb | ||||||||||||||||||||||||||||
| 12 | # vim: set ts=8 sts=2 sw=2 tw=100 et : | ||||||||||||||||||||||||||||
| 13 | # ABSTRACT: Common tests to check syntax of your modules, using only core modules | ||||||||||||||||||||||||||||
| 14 | # KEYWORDS: plugin test compile verify validate load modules scripts | ||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||
| 16 | 19 | our $VERSION = '2.059'; | |||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 19 | ▶ | use Moose; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 19 | 19 | ▶ | use Path::Tiny; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 20 | 19 | ▶ | use Sub::Exporter::ForMethods 'method_installer'; # method_installer returns a sub. | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 21 | 19 | ▶ | use Data::Section 0.004 # fixed header_re | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 22 | 19 | { installer => method_installer }, '-setup'; | |||||||||||||||||||||||||||
| 23 | 19 | ▶ | use Dist::Zilla::Dist::Builder (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | with ( | ||||||||||||||||||||||||||||
| 26 | 'Dist::Zilla::Role::FileGatherer', | ||||||||||||||||||||||||||||
| 27 | 'Dist::Zilla::Role::FileMunger', | ||||||||||||||||||||||||||||
| 28 | 'Dist::Zilla::Role::TextTemplate', | ||||||||||||||||||||||||||||
| 29 | 'Dist::Zilla::Role::FileFinderUser' => { | ||||||||||||||||||||||||||||
| 30 | method => 'found_module_files', | ||||||||||||||||||||||||||||
| 31 | finder_arg_names => [ 'module_finder' ], | ||||||||||||||||||||||||||||
| 32 | default_finders => [ ':InstallModules' ], | ||||||||||||||||||||||||||||
| 33 | }, | ||||||||||||||||||||||||||||
| 34 | 'Dist::Zilla::Role::FileFinderUser' => { | ||||||||||||||||||||||||||||
| 35 | method => 'found_script_files', | ||||||||||||||||||||||||||||
| 36 | finder_arg_names => [ 'script_finder' ], | ||||||||||||||||||||||||||||
| 37 | default_finders => [ | ||||||||||||||||||||||||||||
| 38 | 19 | ▶ | eval { Dist::Zilla::Dist::Builder->VERSION('5.038'); 1 } | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 39 | ? ':PerlExecFiles' | ||||||||||||||||||||||||||||
| 40 | : ':ExecFiles' | ||||||||||||||||||||||||||||
| 41 | ], | ||||||||||||||||||||||||||||
| 42 | }, | ||||||||||||||||||||||||||||
| 43 | 'Dist::Zilla::Role::PrereqSource', | ||||||||||||||||||||||||||||
| 44 | ); | ||||||||||||||||||||||||||||
| 45 | |||||||||||||||||||||||||||||
| 46 | 19 | ▶ | use Moose::Util::TypeConstraints qw(enum role_type); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 47 | 19 | ▶ | use namespace::autoclean; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||
| 49 | # -- attributes | ||||||||||||||||||||||||||||
| 50 | |||||||||||||||||||||||||||||
| 51 | 19 | has fake_home => ( is=>'ro', isa=>'Bool', default=>0 ); | |||||||||||||||||||||||||||
| 52 | 19 | has needs_display => ( is=>'ro', isa=>'Bool', default=>0 ); | |||||||||||||||||||||||||||
| 53 | 19 | has fail_on_warning => ( is=>'ro', isa=>enum([qw(none author all)]), default=>'author' ); | |||||||||||||||||||||||||||
| 54 | 19 | has bail_out_on_fail => ( is=>'ro', isa=>'Bool', default=>0 ); | |||||||||||||||||||||||||||
| 55 | 19 | has xt_mode => ( is=>'ro', isa=>'Bool', default=>0 ); | |||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||
| 57 | has filename => ( | ||||||||||||||||||||||||||||
| 58 | is => 'ro', isa => 'Str', | ||||||||||||||||||||||||||||
| 59 | lazy => 1, | ||||||||||||||||||||||||||||
| 60 | 19 | ▶ | default => sub { return ($_[0]->xt_mode ? 'xt/author' : 't').'/00-compile.t' }, | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 61 | 19 | ); | |||||||||||||||||||||||||||
| 62 | |||||||||||||||||||||||||||||
| 63 | has phase => ( | ||||||||||||||||||||||||||||
| 64 | is => 'ro', isa => 'Str', | ||||||||||||||||||||||||||||
| 65 | lazy => 1, | ||||||||||||||||||||||||||||
| 66 | 19 | ▶ | default => sub { return $_[0]->xt_mode ? 'develop' : 'test' }, | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 67 | 19 | ); | |||||||||||||||||||||||||||
| 68 | |||||||||||||||||||||||||||||
| 69 | 21 | ▶ | sub mvp_multivalue_args { qw(skips files switches) } | ||||||||||||||||||||||||||
|
Subroutine
mvp_multivalue_args: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 70 | 21 | ▶ | sub mvp_aliases { return { skip => 'skips', file => 'files', switch => 'switches' } } | ||||||||||||||||||||||||||
|
Subroutine
mvp_aliases: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 71 | |||||||||||||||||||||||||||||
| 72 | has skips => ( | ||||||||||||||||||||||||||||
| 73 | isa => 'ArrayRef[Str]', | ||||||||||||||||||||||||||||
| 74 | traits => ['Array'], | ||||||||||||||||||||||||||||
| 75 | handles => { skips => 'sort' }, | ||||||||||||||||||||||||||||
| 76 | lazy => 1, | ||||||||||||||||||||||||||||
| 77 | 21 | ▶ | default => sub { [] }, | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 78 | 19 | ); | |||||||||||||||||||||||||||
| 79 | |||||||||||||||||||||||||||||
| 80 | has files => ( | ||||||||||||||||||||||||||||
| 81 | isa => 'ArrayRef[Str]', | ||||||||||||||||||||||||||||
| 82 | traits => ['Array'], | ||||||||||||||||||||||||||||
| 83 | handles => { files => 'sort' }, | ||||||||||||||||||||||||||||
| 84 | lazy => 1, | ||||||||||||||||||||||||||||
| 85 | 20 | ▶ | default => sub { [] }, | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 86 | 19 | ); | |||||||||||||||||||||||||||
| 87 | |||||||||||||||||||||||||||||
| 88 | has switches => ( | ||||||||||||||||||||||||||||
| 89 | isa => 'ArrayRef[Str]', | ||||||||||||||||||||||||||||
| 90 | traits => ['Array'], | ||||||||||||||||||||||||||||
| 91 | handles => { switches => 'elements' }, | ||||||||||||||||||||||||||||
| 92 | lazy => 1, | ||||||||||||||||||||||||||||
| 93 | 19 | ▶ | default => sub { [] }, | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 94 | 19 | ); | |||||||||||||||||||||||||||
| 95 | |||||||||||||||||||||||||||||
| 96 | has _test_more_version => ( | ||||||||||||||||||||||||||||
| 97 | is => 'ro', isa => 'Str', | ||||||||||||||||||||||||||||
| 98 | init_arg => undef, | ||||||||||||||||||||||||||||
| 99 | lazy => 1, | ||||||||||||||||||||||||||||
| 100 | 21 | ▶ | default => sub { shift->bail_out_on_fail ? '0.94' : '0' }, | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 101 | 19 | ); | |||||||||||||||||||||||||||
| 102 | |||||||||||||||||||||||||||||
| 103 | # note that these two attributes could conceivably be settable via dist.ini, | ||||||||||||||||||||||||||||
| 104 | # to avoid us using filefinders at all. | ||||||||||||||||||||||||||||
| 105 | has _module_filenames => ( | ||||||||||||||||||||||||||||
| 106 | isa => 'ArrayRef[Str]', | ||||||||||||||||||||||||||||
| 107 | traits => ['Array'], | ||||||||||||||||||||||||||||
| 108 | handles => { _module_filenames => 'sort' }, | ||||||||||||||||||||||||||||
| 109 | lazy => 1, | ||||||||||||||||||||||||||||
| 110 | 21 | ▶ | default => sub { [ map $_->name, @{shift->found_module_files} ] }, | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 111 | 19 | ); | |||||||||||||||||||||||||||
| 112 | has _script_filenames => ( | ||||||||||||||||||||||||||||
| 113 | isa => 'ArrayRef[Str]', | ||||||||||||||||||||||||||||
| 114 | traits => ['Array'], | ||||||||||||||||||||||||||||
| 115 | handles => { _script_filenames => 'sort' }, | ||||||||||||||||||||||||||||
| 116 | lazy => 1, | ||||||||||||||||||||||||||||
| 117 | 21 | ▶ | default => sub { [ map $_->name, @{shift->found_script_files} ] }, | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 118 | 19 | ); | |||||||||||||||||||||||||||
| 119 | |||||||||||||||||||||||||||||
| 120 | around dump_config => sub | ||||||||||||||||||||||||||||
| 121 | 3 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||
| 122 | 3 | my ($orig, $self) = @_; | |||||||||||||||||||||||||||
| 123 | 3 | my $config = $self->$orig; | |||||||||||||||||||||||||||
| 124 | |||||||||||||||||||||||||||||
| 125 | $config->{+__PACKAGE__} = +{ | ||||||||||||||||||||||||||||
| 126 | 3 | module_finder => [ sort @{ $self->module_finder } ], | |||||||||||||||||||||||||||
| 127 | 3 | ▶ | script_finder => [ sort @{ $self->script_finder } ], | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 128 | skips => [ sort $self->skips ], | ||||||||||||||||||||||||||||
| 129 | (map +($_ => $self->$_ ? 1 : 0), qw(fake_home needs_display bail_out_on_fail)), | ||||||||||||||||||||||||||||
| 130 | (map +($_ => $self->$_), qw(filename fail_on_warning bail_out_on_fail phase)), | ||||||||||||||||||||||||||||
| 131 | switch => [ $self->switches ], | ||||||||||||||||||||||||||||
| 132 | blessed($self) ne __PACKAGE__ ? ( version => $VERSION ) : (), | ||||||||||||||||||||||||||||
| 133 | }; | ||||||||||||||||||||||||||||
| 134 | 3 | return $config; | |||||||||||||||||||||||||||
| 135 | 19 | }; | |||||||||||||||||||||||||||
| 136 | |||||||||||||||||||||||||||||
| 137 | sub register_prereqs | ||||||||||||||||||||||||||||
| 138 | 21 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
register_prereqs: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 139 | 21 | my $self = shift; | |||||||||||||||||||||||||||
| 140 | |||||||||||||||||||||||||||||
| 141 | 21 | ▶ | return unless $self->phase; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 142 | |||||||||||||||||||||||||||||
| 143 | 20 | ▶ | $self->zilla->register_prereqs( | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 144 | { | ||||||||||||||||||||||||||||
| 145 | phase => $self->phase, | ||||||||||||||||||||||||||||
| 146 | type => 'requires', | ||||||||||||||||||||||||||||
| 147 | }, | ||||||||||||||||||||||||||||
| 148 | 'Test::More' => $self->_test_more_version, | ||||||||||||||||||||||||||||
| 149 | 'File::Spec' => '0', | ||||||||||||||||||||||||||||
| 150 | 'IPC::Open3' => 0, | ||||||||||||||||||||||||||||
| 151 | 'IO::Handle' => 0, | ||||||||||||||||||||||||||||
| 152 | $self->fake_home ? ( 'File::Temp' => '0' ) : (), | ||||||||||||||||||||||||||||
| 153 | ); | ||||||||||||||||||||||||||||
| 154 | } | ||||||||||||||||||||||||||||
| 155 | |||||||||||||||||||||||||||||
| 156 | 19 | has _file => ( | |||||||||||||||||||||||||||
| 157 | is => 'rw', isa => role_type('Dist::Zilla::Role::File'), | ||||||||||||||||||||||||||||
| 158 | ); | ||||||||||||||||||||||||||||
| 159 | |||||||||||||||||||||||||||||
| 160 | sub gather_files | ||||||||||||||||||||||||||||
| 161 | 21 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
gather_files: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 162 | 21 | my $self = shift; | |||||||||||||||||||||||||||
| 163 | |||||||||||||||||||||||||||||
| 164 | 21 | require Dist::Zilla::File::InMemory; | |||||||||||||||||||||||||||
| 165 | |||||||||||||||||||||||||||||
| 166 | $self->add_file( $self->_file( | ||||||||||||||||||||||||||||
| 167 | Dist::Zilla::File::InMemory->new( | ||||||||||||||||||||||||||||
| 168 | name => $self->filename, | ||||||||||||||||||||||||||||
| 169 | 21 | content => ${$self->section_data('test-compile')}, | |||||||||||||||||||||||||||
| 170 | )) | ||||||||||||||||||||||||||||
| 171 | ); | ||||||||||||||||||||||||||||
| 172 | 21 | return; | |||||||||||||||||||||||||||
| 173 | } | ||||||||||||||||||||||||||||
| 174 | |||||||||||||||||||||||||||||
| 175 | sub munge_file | ||||||||||||||||||||||||||||
| 176 | 97 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
munge_file: called CC=9 SCAR=22.2
Pod
undocumented
| |||||||||||||||||||||||||||||
| 177 | 97 | my ($self, $file) = @_; | |||||||||||||||||||||||||||
| 178 | |||||||||||||||||||||||||||||
| 179 | 97 | ▶ | return unless $file == $self->_file; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 180 | |||||||||||||||||||||||||||||
| 181 | 21 | my @skips = map qr/$_/, $self->skips; | |||||||||||||||||||||||||||
| 182 | |||||||||||||||||||||||||||||
| 183 | 21 | my @more_files = $self->files; | |||||||||||||||||||||||||||
| 184 | |||||||||||||||||||||||||||||
| 185 | # we strip the leading lib/, and convert win32 \ to /, so the %INC entry | ||||||||||||||||||||||||||||
| 186 | # is correct - to avoid potentially loading the file again later | ||||||||||||||||||||||||||||
| 187 | 21 | my @module_filenames = map path($_)->relative('lib')->stringify, $self->_module_filenames; | |||||||||||||||||||||||||||
| 188 | 21 | ▶ | push @module_filenames, grep /\.pm/i, @more_files if @more_files; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 189 | |||||||||||||||||||||||||||||
| 190 | @module_filenames = grep { | ||||||||||||||||||||||||||||
| 191 | 0 | ▶ | (my $module = $_) =~ s{[/\\]}{::}g; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 192 | 0 | $module =~ s/\.pm$//; | |||||||||||||||||||||||||||
| 193 | 0 | not grep $module =~ $_, @skips | |||||||||||||||||||||||||||
| 194 | } @module_filenames if @skips; | ||||||||||||||||||||||||||||
| 195 | |||||||||||||||||||||||||||||
| 196 | # pod never returns true when loaded | ||||||||||||||||||||||||||||
| 197 | 21 | @module_filenames = grep !/\.pod$/, @module_filenames; | |||||||||||||||||||||||||||
| 198 | |||||||||||||||||||||||||||||
| 199 | 21 | my @script_filenames = $self->_script_filenames; | |||||||||||||||||||||||||||
| 200 | 21 | ▶ | push @script_filenames, grep !/\.pm/i, @more_files if @more_files; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 201 | |||||||||||||||||||||||||||||
| 202 | 21 | $self->log_debug('adding module '.$_) foreach @module_filenames; | |||||||||||||||||||||||||||
| 203 | 21 | $self->log_debug('adding script '.$_) foreach @script_filenames; | |||||||||||||||||||||||||||
| 204 | |||||||||||||||||||||||||||||
| 205 | 21 | ▶ | $file->content( | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$self->fail_on_warning eq "author" and $self->filename =~ m[^xt/author/]
MC/DC100%2/2
$self->fail_on_warning eq "author" and $self->filename =~ m[^xt/author/]
$self->fail_on_warning eq "author"
$self->filename =~ m[^xt/author/]
Truth table100%3/3
A and B
A= $self->fail_on_warning eq "author"B= $self->filename =~ m[^xt/author/]
| |||||||||||||||||||||||||||||
| 206 | $self->fill_in_string( | ||||||||||||||||||||||||||||
| 207 | $file->content, | ||||||||||||||||||||||||||||
| 208 | { | ||||||||||||||||||||||||||||
| 209 | dist => \($self->zilla), | ||||||||||||||||||||||||||||
| 210 | plugin => \$self, | ||||||||||||||||||||||||||||
| 211 | test_more_version => \($self->_test_more_version), | ||||||||||||||||||||||||||||
| 212 | module_filenames => \@module_filenames, | ||||||||||||||||||||||||||||
| 213 | script_filenames => \@script_filenames, | ||||||||||||||||||||||||||||
| 214 | fake_home => \($self->fake_home), | ||||||||||||||||||||||||||||
| 215 | needs_display => \($self->needs_display), | ||||||||||||||||||||||||||||
| 216 | bail_out_on_fail => \($self->bail_out_on_fail), | ||||||||||||||||||||||||||||
| 217 | fail_on_warning => \( | ||||||||||||||||||||||||||||
| 218 | $self->fail_on_warning eq 'author' && $self->filename =~ m{^xt/author/} | ||||||||||||||||||||||||||||
| 219 | ? 'all' | ||||||||||||||||||||||||||||
| 220 | : $self->fail_on_warning), | ||||||||||||||||||||||||||||
| 221 | switches => \[$self->switches], | ||||||||||||||||||||||||||||
| 222 | } | ||||||||||||||||||||||||||||
| 223 | ) | ||||||||||||||||||||||||||||
| 224 | ); | ||||||||||||||||||||||||||||
| 225 | |||||||||||||||||||||||||||||
| 226 | 21 | return; | |||||||||||||||||||||||||||
| 227 | } | ||||||||||||||||||||||||||||
| 228 | |||||||||||||||||||||||||||||
| 229 | 19 | __PACKAGE__->meta->make_immutable; | |||||||||||||||||||||||||||
| 230 | |||||||||||||||||||||||||||||
| 231 | #pod =pod | ||||||||||||||||||||||||||||
| 232 | #pod | ||||||||||||||||||||||||||||
| 233 | #pod =for Pod::Coverage | ||||||||||||||||||||||||||||
| 234 | #pod mvp_multivalue_args | ||||||||||||||||||||||||||||
| 235 | #pod mvp_aliases | ||||||||||||||||||||||||||||
| 236 | #pod register_prereqs | ||||||||||||||||||||||||||||
| 237 | #pod gather_files | ||||||||||||||||||||||||||||
| 238 | #pod munge_file | ||||||||||||||||||||||||||||
| 239 | #pod | ||||||||||||||||||||||||||||
| 240 | #pod =head1 SYNOPSIS | ||||||||||||||||||||||||||||
| 241 | #pod | ||||||||||||||||||||||||||||
| 242 | #pod In your F<dist.ini>: | ||||||||||||||||||||||||||||
| 243 | #pod | ||||||||||||||||||||||||||||
| 244 | #pod [Test::Compile] | ||||||||||||||||||||||||||||
| 245 | #pod skip = Test$ | ||||||||||||||||||||||||||||
| 246 | #pod fake_home = 1 | ||||||||||||||||||||||||||||
| 247 | #pod needs_display = 1 | ||||||||||||||||||||||||||||
| 248 | #pod fail_on_warning = author | ||||||||||||||||||||||||||||
| 249 | #pod bail_out_on_fail = 1 | ||||||||||||||||||||||||||||
| 250 | #pod switch = -M-warnings=numeric ; like "no warnings 'numeric' | ||||||||||||||||||||||||||||
| 251 | #pod | ||||||||||||||||||||||||||||
| 252 | #pod =head1 DESCRIPTION | ||||||||||||||||||||||||||||
| 253 | #pod | ||||||||||||||||||||||||||||
| 254 | #pod This is a L<Dist::Zilla> plugin that runs at the L<gather files|Dist::Zilla::Role::FileGatherer> stage, | ||||||||||||||||||||||||||||
| 255 | #pod providing a test file (configurable, defaulting to F<t/00-compile.t>). | ||||||||||||||||||||||||||||
| 256 | #pod | ||||||||||||||||||||||||||||
| 257 | #pod This test will find all modules and scripts in your distribution, and try to | ||||||||||||||||||||||||||||
| 258 | #pod compile them one by one. This means it's a bit slower than loading them | ||||||||||||||||||||||||||||
| 259 | #pod all at once, but it will catch more errors. | ||||||||||||||||||||||||||||
| 260 | #pod | ||||||||||||||||||||||||||||
| 261 | #pod The generated test is guaranteed to only depend on modules that are available | ||||||||||||||||||||||||||||
| 262 | #pod in core. Most options only require perl 5.6.2; the C<bail_out_on_fail> option | ||||||||||||||||||||||||||||
| 263 | #pod requires the version of L<Test::More> that shipped with perl 5.12 (but the | ||||||||||||||||||||||||||||
| 264 | #pod test still runs on perl 5.6). | ||||||||||||||||||||||||||||
| 265 | #pod | ||||||||||||||||||||||||||||
| 266 | #pod This plugin accepts the following options: | ||||||||||||||||||||||||||||
| 267 | #pod | ||||||||||||||||||||||||||||
| 268 | #pod =head1 CONFIGURATION OPTIONS | ||||||||||||||||||||||||||||
| 269 | #pod | ||||||||||||||||||||||||||||
| 270 | #pod =head2 C<filename> | ||||||||||||||||||||||||||||
| 271 | #pod | ||||||||||||||||||||||||||||
| 272 | #pod The name of the generated file. Defaults to F<t/00-compile.t> | ||||||||||||||||||||||||||||
| 273 | #pod | ||||||||||||||||||||||||||||
| 274 | #pod =head2 C<phase> | ||||||||||||||||||||||||||||
| 275 | #pod | ||||||||||||||||||||||||||||
| 276 | #pod The phase for which to register prerequisites. Defaults | ||||||||||||||||||||||||||||
| 277 | #pod to C<test>. Setting this to a false value will disable prerequisite | ||||||||||||||||||||||||||||
| 278 | #pod registration. | ||||||||||||||||||||||||||||
| 279 | #pod | ||||||||||||||||||||||||||||
| 280 | #pod =head2 C<skip> | ||||||||||||||||||||||||||||
| 281 | #pod | ||||||||||||||||||||||||||||
| 282 | #pod A regex to skip compile test for B<modules> matching it. The | ||||||||||||||||||||||||||||
| 283 | #pod match is done against the module name (C<Foo::Bar>), not the file path | ||||||||||||||||||||||||||||
| 284 | #pod (F<lib/Foo/Bar.pm>). This option can be repeated to specify multiple regexes. | ||||||||||||||||||||||||||||
| 285 | #pod | ||||||||||||||||||||||||||||
| 286 | #pod =head2 C<file> | ||||||||||||||||||||||||||||
| 287 | #pod | ||||||||||||||||||||||||||||
| 288 | #pod A filename to also test, in addition to any files found | ||||||||||||||||||||||||||||
| 289 | #pod earlier. It will be tested as a module if it ends with C<.pm> or C<.PM>, | ||||||||||||||||||||||||||||
| 290 | #pod and as a script otherwise. | ||||||||||||||||||||||||||||
| 291 | #pod Module filenames should be relative to F<lib>; others should be relative to | ||||||||||||||||||||||||||||
| 292 | #pod the base of the repository. | ||||||||||||||||||||||||||||
| 293 | #pod This option can be repeated to specify multiple additional files. | ||||||||||||||||||||||||||||
| 294 | #pod | ||||||||||||||||||||||||||||
| 295 | #pod =head2 C<fake_home> | ||||||||||||||||||||||||||||
| 296 | #pod | ||||||||||||||||||||||||||||
| 297 | #pod =for stopwords cpantesters | ||||||||||||||||||||||||||||
| 298 | #pod | ||||||||||||||||||||||||||||
| 299 | #pod A boolean to indicate whether to fake C<< $ENV{HOME} >>. | ||||||||||||||||||||||||||||
| 300 | #pod This may be needed if your module unilaterally creates stuff in the user's home directory: | ||||||||||||||||||||||||||||
| 301 | #pod indeed, some cpantesters will smoke test your distribution with a read-only home | ||||||||||||||||||||||||||||
| 302 | #pod directory. Defaults to false. | ||||||||||||||||||||||||||||
| 303 | #pod | ||||||||||||||||||||||||||||
| 304 | #pod =head2 C<needs_display> | ||||||||||||||||||||||||||||
| 305 | #pod | ||||||||||||||||||||||||||||
| 306 | #pod A boolean to indicate whether to skip the compile test | ||||||||||||||||||||||||||||
| 307 | #pod on non-Win32 systems when C<< $ENV{DISPLAY} >> is not set. Defaults to false. | ||||||||||||||||||||||||||||
| 308 | #pod | ||||||||||||||||||||||||||||
| 309 | #pod =head2 C<fail_on_warning> | ||||||||||||||||||||||||||||
| 310 | #pod | ||||||||||||||||||||||||||||
| 311 | #pod A string to indicate when to add a test for | ||||||||||||||||||||||||||||
| 312 | #pod warnings during compilation checks. Possible values are: | ||||||||||||||||||||||||||||
| 313 | #pod | ||||||||||||||||||||||||||||
| 314 | #pod =over 4 | ||||||||||||||||||||||||||||
| 315 | #pod | ||||||||||||||||||||||||||||
| 316 | #pod =item * C<none>: do not test for warnings | ||||||||||||||||||||||||||||
| 317 | #pod | ||||||||||||||||||||||||||||
| 318 | #pod =item * C<author>: test for warnings only when AUTHOR_TESTING is set | ||||||||||||||||||||||||||||
| 319 | #pod (default, and recommended) | ||||||||||||||||||||||||||||
| 320 | #pod | ||||||||||||||||||||||||||||
| 321 | #pod =item * C<all>: always test for warnings (not recommended, as this can prevent | ||||||||||||||||||||||||||||
| 322 | #pod installation of modules when upstream dependencies exhibit warnings in a new | ||||||||||||||||||||||||||||
| 323 | #pod Perl release) | ||||||||||||||||||||||||||||
| 324 | #pod | ||||||||||||||||||||||||||||
| 325 | #pod =back | ||||||||||||||||||||||||||||
| 326 | #pod | ||||||||||||||||||||||||||||
| 327 | #pod =head2 C<bail_out_on_fail> | ||||||||||||||||||||||||||||
| 328 | #pod | ||||||||||||||||||||||||||||
| 329 | #pod A boolean to indicate whether the test will BAIL_OUT | ||||||||||||||||||||||||||||
| 330 | #pod of all subsequent tests when compilation failures are encountered. Defaults to false. | ||||||||||||||||||||||||||||
| 331 | #pod | ||||||||||||||||||||||||||||
| 332 | #pod =head2 C<module_finder> | ||||||||||||||||||||||||||||
| 333 | #pod | ||||||||||||||||||||||||||||
| 334 | #pod =for stopwords FileFinder | ||||||||||||||||||||||||||||
| 335 | #pod | ||||||||||||||||||||||||||||
| 336 | #pod This is the name of a L<FileFinder|Dist::Zilla::Role::FileFinder> for finding | ||||||||||||||||||||||||||||
| 337 | #pod modules to check. The default value is C<:InstallModules>; this option can be | ||||||||||||||||||||||||||||
| 338 | #pod used more than once. F<.pod> files are always skipped. | ||||||||||||||||||||||||||||
| 339 | #pod | ||||||||||||||||||||||||||||
| 340 | #pod Other predefined finders are listed in | ||||||||||||||||||||||||||||
| 341 | #pod L<Dist::Zilla::Role::FileFinderUser/default_finders>. | ||||||||||||||||||||||||||||
| 342 | #pod You can define your own with the | ||||||||||||||||||||||||||||
| 343 | #pod L<[FileFinder::ByName]|Dist::Zilla::Plugin::FileFinder::ByName> and | ||||||||||||||||||||||||||||
| 344 | #pod L<[FileFinder::Filter]|Dist::Zilla::Plugin::FileFinder::Filter> plugins. | ||||||||||||||||||||||||||||
| 345 | #pod | ||||||||||||||||||||||||||||
| 346 | #pod =head2 C<script_finder> | ||||||||||||||||||||||||||||
| 347 | #pod | ||||||||||||||||||||||||||||
| 348 | #pod =for stopwords executables | ||||||||||||||||||||||||||||
| 349 | #pod | ||||||||||||||||||||||||||||
| 350 | #pod Just like C<module_finder>, but for finding scripts. The default value is | ||||||||||||||||||||||||||||
| 351 | #pod C<:PerlExecFiles> (when available; otherwise C<:ExecFiles>) | ||||||||||||||||||||||||||||
| 352 | #pod -- see also L<Dist::Zilla::Plugin::ExecDir>, to make sure these | ||||||||||||||||||||||||||||
| 353 | #pod files are properly marked as executables for the installer. | ||||||||||||||||||||||||||||
| 354 | #pod | ||||||||||||||||||||||||||||
| 355 | #pod =head2 C<xt_mode> | ||||||||||||||||||||||||||||
| 356 | #pod | ||||||||||||||||||||||||||||
| 357 | #pod When true, the default C<filename> becomes F<xt/author/00-compile.t> and the | ||||||||||||||||||||||||||||
| 358 | #pod default C<dependency> phase becomes C<develop>. | ||||||||||||||||||||||||||||
| 359 | #pod | ||||||||||||||||||||||||||||
| 360 | #pod =head2 C<switch> | ||||||||||||||||||||||||||||
| 361 | #pod | ||||||||||||||||||||||||||||
| 362 | #pod Use this option to pass a command-line switch (e.g. C<-d:Confess>, C<-M-warnings=numeric>) to the command that | ||||||||||||||||||||||||||||
| 363 | #pod tests the module or script. Can be used more than once. See L<perlrun> for more on constructing these switches. | ||||||||||||||||||||||||||||
| 364 | #pod | ||||||||||||||||||||||||||||
| 365 | #pod =head1 RUNTIME ENVIRONMENT OPTIONS | ||||||||||||||||||||||||||||
| 366 | #pod | ||||||||||||||||||||||||||||
| 367 | #pod If the environment variable C<$PERL_COMPILE_TEST_DEBUG> is set to a true option when the test is run, the command | ||||||||||||||||||||||||||||
| 368 | #pod to test each file will be printed as a C<diag>. | ||||||||||||||||||||||||||||
| 369 | #pod | ||||||||||||||||||||||||||||
| 370 | #pod =head1 SEE ALSO | ||||||||||||||||||||||||||||
| 371 | #pod | ||||||||||||||||||||||||||||
| 372 | #pod =for :list | ||||||||||||||||||||||||||||
| 373 | #pod * L<Test::NeedsDisplay> | ||||||||||||||||||||||||||||
| 374 | #pod * L<Test::Script> | ||||||||||||||||||||||||||||
| 375 | #pod | ||||||||||||||||||||||||||||
| 376 | #pod =cut | ||||||||||||||||||||||||||||
| 377 | |||||||||||||||||||||||||||||
| 378 | =pod | ||||||||||||||||||||||||||||
| 379 | |||||||||||||||||||||||||||||
| 380 | =encoding UTF-8 | ||||||||||||||||||||||||||||
| 381 | |||||||||||||||||||||||||||||
| 382 | =head1 NAME | ||||||||||||||||||||||||||||
| 383 | |||||||||||||||||||||||||||||
| 384 | Dist::Zilla::Plugin::Test::Compile - Common tests to check syntax of your modules, using only core modules | ||||||||||||||||||||||||||||
| 385 | |||||||||||||||||||||||||||||
| 386 | =head1 VERSION | ||||||||||||||||||||||||||||
| 387 | |||||||||||||||||||||||||||||
| 388 | version 2.059 | ||||||||||||||||||||||||||||
| 389 | |||||||||||||||||||||||||||||
| 390 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||
| 391 | |||||||||||||||||||||||||||||
| 392 | In your F<dist.ini>: | ||||||||||||||||||||||||||||
| 393 | |||||||||||||||||||||||||||||
| 394 | [Test::Compile] | ||||||||||||||||||||||||||||
| 395 | skip = Test$ | ||||||||||||||||||||||||||||
| 396 | fake_home = 1 | ||||||||||||||||||||||||||||
| 397 | needs_display = 1 | ||||||||||||||||||||||||||||
| 398 | fail_on_warning = author | ||||||||||||||||||||||||||||
| 399 | bail_out_on_fail = 1 | ||||||||||||||||||||||||||||
| 400 | switch = -M-warnings=numeric ; like "no warnings 'numeric' | ||||||||||||||||||||||||||||
| 401 | |||||||||||||||||||||||||||||
| 402 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||
| 403 | |||||||||||||||||||||||||||||
| 404 | This is a L<Dist::Zilla> plugin that runs at the L<gather files|Dist::Zilla::Role::FileGatherer> stage, | ||||||||||||||||||||||||||||
| 405 | providing a test file (configurable, defaulting to F<t/00-compile.t>). | ||||||||||||||||||||||||||||
| 406 | |||||||||||||||||||||||||||||
| 407 | This test will find all modules and scripts in your distribution, and try to | ||||||||||||||||||||||||||||
| 408 | compile them one by one. This means it's a bit slower than loading them | ||||||||||||||||||||||||||||
| 409 | all at once, but it will catch more errors. | ||||||||||||||||||||||||||||
| 410 | |||||||||||||||||||||||||||||
| 411 | The generated test is guaranteed to only depend on modules that are available | ||||||||||||||||||||||||||||
| 412 | in core. Most options only require perl 5.6.2; the C<bail_out_on_fail> option | ||||||||||||||||||||||||||||
| 413 | requires the version of L<Test::More> that shipped with perl 5.12 (but the | ||||||||||||||||||||||||||||
| 414 | test still runs on perl 5.6). | ||||||||||||||||||||||||||||
| 415 | |||||||||||||||||||||||||||||
| 416 | This plugin accepts the following options: | ||||||||||||||||||||||||||||
| 417 | |||||||||||||||||||||||||||||
| 418 | =for Pod::Coverage mvp_multivalue_args | ||||||||||||||||||||||||||||
| 419 | mvp_aliases | ||||||||||||||||||||||||||||
| 420 | register_prereqs | ||||||||||||||||||||||||||||
| 421 | gather_files | ||||||||||||||||||||||||||||
| 422 | munge_file | ||||||||||||||||||||||||||||
| 423 | |||||||||||||||||||||||||||||
| 424 | =head1 CONFIGURATION OPTIONS | ||||||||||||||||||||||||||||
| 425 | |||||||||||||||||||||||||||||
| 426 | =head2 C<filename> | ||||||||||||||||||||||||||||
| 427 | |||||||||||||||||||||||||||||
| 428 | The name of the generated file. Defaults to F<t/00-compile.t> | ||||||||||||||||||||||||||||
| 429 | |||||||||||||||||||||||||||||
| 430 | =head2 C<phase> | ||||||||||||||||||||||||||||
| 431 | |||||||||||||||||||||||||||||
| 432 | The phase for which to register prerequisites. Defaults | ||||||||||||||||||||||||||||
| 433 | to C<test>. Setting this to a false value will disable prerequisite | ||||||||||||||||||||||||||||
| 434 | registration. | ||||||||||||||||||||||||||||
| 435 | |||||||||||||||||||||||||||||
| 436 | =head2 C<skip> | ||||||||||||||||||||||||||||
| 437 | |||||||||||||||||||||||||||||
| 438 | A regex to skip compile test for B<modules> matching it. The | ||||||||||||||||||||||||||||
| 439 | match is done against the module name (C<Foo::Bar>), not the file path | ||||||||||||||||||||||||||||
| 440 | (F<lib/Foo/Bar.pm>). This option can be repeated to specify multiple regexes. | ||||||||||||||||||||||||||||
| 441 | |||||||||||||||||||||||||||||
| 442 | =head2 C<file> | ||||||||||||||||||||||||||||
| 443 | |||||||||||||||||||||||||||||
| 444 | A filename to also test, in addition to any files found | ||||||||||||||||||||||||||||
| 445 | earlier. It will be tested as a module if it ends with C<.pm> or C<.PM>, | ||||||||||||||||||||||||||||
| 446 | and as a script otherwise. | ||||||||||||||||||||||||||||
| 447 | Module filenames should be relative to F<lib>; others should be relative to | ||||||||||||||||||||||||||||
| 448 | the base of the repository. | ||||||||||||||||||||||||||||
| 449 | This option can be repeated to specify multiple additional files. | ||||||||||||||||||||||||||||
| 450 | |||||||||||||||||||||||||||||
| 451 | =head2 C<fake_home> | ||||||||||||||||||||||||||||
| 452 | |||||||||||||||||||||||||||||
| 453 | =for stopwords cpantesters | ||||||||||||||||||||||||||||
| 454 | |||||||||||||||||||||||||||||
| 455 | A boolean to indicate whether to fake C<< $ENV{HOME} >>. | ||||||||||||||||||||||||||||
| 456 | This may be needed if your module unilaterally creates stuff in the user's home directory: | ||||||||||||||||||||||||||||
| 457 | indeed, some cpantesters will smoke test your distribution with a read-only home | ||||||||||||||||||||||||||||
| 458 | directory. Defaults to false. | ||||||||||||||||||||||||||||
| 459 | |||||||||||||||||||||||||||||
| 460 | =head2 C<needs_display> | ||||||||||||||||||||||||||||
| 461 | |||||||||||||||||||||||||||||
| 462 | A boolean to indicate whether to skip the compile test | ||||||||||||||||||||||||||||
| 463 | on non-Win32 systems when C<< $ENV{DISPLAY} >> is not set. Defaults to false. | ||||||||||||||||||||||||||||
| 464 | |||||||||||||||||||||||||||||
| 465 | =head2 C<fail_on_warning> | ||||||||||||||||||||||||||||
| 466 | |||||||||||||||||||||||||||||
| 467 | A string to indicate when to add a test for | ||||||||||||||||||||||||||||
| 468 | warnings during compilation checks. Possible values are: | ||||||||||||||||||||||||||||
| 469 | |||||||||||||||||||||||||||||
| 470 | =over 4 | ||||||||||||||||||||||||||||
| 471 | |||||||||||||||||||||||||||||
| 472 | =item * C<none>: do not test for warnings | ||||||||||||||||||||||||||||
| 473 | |||||||||||||||||||||||||||||
| 474 | =item * C<author>: test for warnings only when AUTHOR_TESTING is set | ||||||||||||||||||||||||||||
| 475 | (default, and recommended) | ||||||||||||||||||||||||||||
| 476 | |||||||||||||||||||||||||||||
| 477 | =item * C<all>: always test for warnings (not recommended, as this can prevent | ||||||||||||||||||||||||||||
| 478 | installation of modules when upstream dependencies exhibit warnings in a new | ||||||||||||||||||||||||||||
| 479 | Perl release) | ||||||||||||||||||||||||||||
| 480 | |||||||||||||||||||||||||||||
| 481 | =back | ||||||||||||||||||||||||||||
| 482 | |||||||||||||||||||||||||||||
| 483 | =head2 C<bail_out_on_fail> | ||||||||||||||||||||||||||||
| 484 | |||||||||||||||||||||||||||||
| 485 | A boolean to indicate whether the test will BAIL_OUT | ||||||||||||||||||||||||||||
| 486 | of all subsequent tests when compilation failures are encountered. Defaults to false. | ||||||||||||||||||||||||||||
| 487 | |||||||||||||||||||||||||||||
| 488 | =head2 C<module_finder> | ||||||||||||||||||||||||||||
| 489 | |||||||||||||||||||||||||||||
| 490 | =for stopwords FileFinder | ||||||||||||||||||||||||||||
| 491 | |||||||||||||||||||||||||||||
| 492 | This is the name of a L<FileFinder|Dist::Zilla::Role::FileFinder> for finding | ||||||||||||||||||||||||||||
| 493 | modules to check. The default value is C<:InstallModules>; this option can be | ||||||||||||||||||||||||||||
| 494 | used more than once. F<.pod> files are always skipped. | ||||||||||||||||||||||||||||
| 495 | |||||||||||||||||||||||||||||
| 496 | Other predefined finders are listed in | ||||||||||||||||||||||||||||
| 497 | L<Dist::Zilla::Role::FileFinderUser/default_finders>. | ||||||||||||||||||||||||||||
| 498 | You can define your own with the | ||||||||||||||||||||||||||||
| 499 | L<[FileFinder::ByName]|Dist::Zilla::Plugin::FileFinder::ByName> and | ||||||||||||||||||||||||||||
| 500 | L<[FileFinder::Filter]|Dist::Zilla::Plugin::FileFinder::Filter> plugins. | ||||||||||||||||||||||||||||
| 501 | |||||||||||||||||||||||||||||
| 502 | =head2 C<script_finder> | ||||||||||||||||||||||||||||
| 503 | |||||||||||||||||||||||||||||
| 504 | =for stopwords executables | ||||||||||||||||||||||||||||
| 505 | |||||||||||||||||||||||||||||
| 506 | Just like C<module_finder>, but for finding scripts. The default value is | ||||||||||||||||||||||||||||
| 507 | C<:PerlExecFiles> (when available; otherwise C<:ExecFiles>) | ||||||||||||||||||||||||||||
| 508 | -- see also L<Dist::Zilla::Plugin::ExecDir>, to make sure these | ||||||||||||||||||||||||||||
| 509 | files are properly marked as executables for the installer. | ||||||||||||||||||||||||||||
| 510 | |||||||||||||||||||||||||||||
| 511 | =head2 C<xt_mode> | ||||||||||||||||||||||||||||
| 512 | |||||||||||||||||||||||||||||
| 513 | When true, the default C<filename> becomes F<xt/author/00-compile.t> and the | ||||||||||||||||||||||||||||
| 514 | default C<dependency> phase becomes C<develop>. | ||||||||||||||||||||||||||||
| 515 | |||||||||||||||||||||||||||||
| 516 | =head2 C<switch> | ||||||||||||||||||||||||||||
| 517 | |||||||||||||||||||||||||||||
| 518 | Use this option to pass a command-line switch (e.g. C<-d:Confess>, C<-M-warnings=numeric>) to the command that | ||||||||||||||||||||||||||||
| 519 | tests the module or script. Can be used more than once. See L<perlrun> for more on constructing these switches. | ||||||||||||||||||||||||||||
| 520 | |||||||||||||||||||||||||||||
| 521 | =head1 RUNTIME ENVIRONMENT OPTIONS | ||||||||||||||||||||||||||||
| 522 | |||||||||||||||||||||||||||||
| 523 | If the environment variable C<$PERL_COMPILE_TEST_DEBUG> is set to a true option when the test is run, the command | ||||||||||||||||||||||||||||
| 524 | to test each file will be printed as a C<diag>. | ||||||||||||||||||||||||||||
| 525 | |||||||||||||||||||||||||||||
| 526 | =head1 SEE ALSO | ||||||||||||||||||||||||||||
| 527 | |||||||||||||||||||||||||||||
| 528 | =over 4 | ||||||||||||||||||||||||||||
| 529 | |||||||||||||||||||||||||||||
| 530 | =item * | ||||||||||||||||||||||||||||
| 531 | |||||||||||||||||||||||||||||
| 532 | L<Test::NeedsDisplay> | ||||||||||||||||||||||||||||
| 533 | |||||||||||||||||||||||||||||
| 534 | =item * | ||||||||||||||||||||||||||||
| 535 | |||||||||||||||||||||||||||||
| 536 | L<Test::Script> | ||||||||||||||||||||||||||||
| 537 | |||||||||||||||||||||||||||||
| 538 | =back | ||||||||||||||||||||||||||||
| 539 | |||||||||||||||||||||||||||||
| 540 | =head1 GIVING THANKS | ||||||||||||||||||||||||||||
| 541 | |||||||||||||||||||||||||||||
| 542 | =for stopwords MetaCPAN GitHub | ||||||||||||||||||||||||||||
| 543 | |||||||||||||||||||||||||||||
| 544 | If you found this module to be useful, please show your appreciation by | ||||||||||||||||||||||||||||
| 545 | adding a +1 in L<MetaCPAN|https://metacpan.org/dist/Dist-Zilla-Plugin-Test-Compile> | ||||||||||||||||||||||||||||
| 546 | and a star in L<GitHub|https://github.com/karenetheridge/Dist-Zilla-Plugin-Test-Compile>. | ||||||||||||||||||||||||||||
| 547 | |||||||||||||||||||||||||||||
| 548 | =head1 SUPPORT | ||||||||||||||||||||||||||||
| 549 | |||||||||||||||||||||||||||||
| 550 | Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Test-Compile> | ||||||||||||||||||||||||||||
| 551 | (or L<bug-Dist-Zilla-Plugin-Test-Compile@rt.cpan.org|mailto:bug-Dist-Zilla-Plugin-Test-Compile@rt.cpan.org>). | ||||||||||||||||||||||||||||
| 552 | |||||||||||||||||||||||||||||
| 553 | There is also a mailing list available for users of this distribution, at | ||||||||||||||||||||||||||||
| 554 | L<http://dzil.org/#mailing-list>. | ||||||||||||||||||||||||||||
| 555 | |||||||||||||||||||||||||||||
| 556 | There is also an irc channel available for users of this distribution, at | ||||||||||||||||||||||||||||
| 557 | L<C<#distzilla> on C<irc.perl.org>|irc://irc.perl.org/#distzilla>. | ||||||||||||||||||||||||||||
| 558 | |||||||||||||||||||||||||||||
| 559 | =head1 AUTHORS | ||||||||||||||||||||||||||||
| 560 | |||||||||||||||||||||||||||||
| 561 | =over 4 | ||||||||||||||||||||||||||||
| 562 | |||||||||||||||||||||||||||||
| 563 | =item * | ||||||||||||||||||||||||||||
| 564 | |||||||||||||||||||||||||||||
| 565 | Jérôme Quelin <jquelin@gmail.com> | ||||||||||||||||||||||||||||
| 566 | |||||||||||||||||||||||||||||
| 567 | =item * | ||||||||||||||||||||||||||||
| 568 | |||||||||||||||||||||||||||||
| 569 | Karen Etheridge <ether@cpan.org> | ||||||||||||||||||||||||||||
| 570 | |||||||||||||||||||||||||||||
| 571 | =back | ||||||||||||||||||||||||||||
| 572 | |||||||||||||||||||||||||||||
| 573 | =head1 CONTRIBUTORS | ||||||||||||||||||||||||||||
| 574 | |||||||||||||||||||||||||||||
| 575 | =for stopwords Ahmad M. Zawawi Olivier Mengué Kent Fredric David Golden Graham Knop Jesse Luehrs Randy Stauner Harley Pig Chris Weyl fayland Marcel Gruenauer Peter Shangov Ricardo SIGNES | ||||||||||||||||||||||||||||
| 576 | |||||||||||||||||||||||||||||
| 577 | =over 4 | ||||||||||||||||||||||||||||
| 578 | |||||||||||||||||||||||||||||
| 579 | =item * | ||||||||||||||||||||||||||||
| 580 | |||||||||||||||||||||||||||||
| 581 | Ahmad M. Zawawi <ahmad.zawawi@gmail.com> | ||||||||||||||||||||||||||||
| 582 | |||||||||||||||||||||||||||||
| 583 | =item * | ||||||||||||||||||||||||||||
| 584 | |||||||||||||||||||||||||||||
| 585 | Olivier Mengué <dolmen@cpan.org> | ||||||||||||||||||||||||||||
| 586 | |||||||||||||||||||||||||||||
| 587 | =item * | ||||||||||||||||||||||||||||
| 588 | |||||||||||||||||||||||||||||
| 589 | Kent Fredric <kentnl@cpan.org> | ||||||||||||||||||||||||||||
| 590 | |||||||||||||||||||||||||||||
| 591 | =item * | ||||||||||||||||||||||||||||
| 592 | |||||||||||||||||||||||||||||
| 593 | David Golden <dagolden@cpan.org> | ||||||||||||||||||||||||||||
| 594 | |||||||||||||||||||||||||||||
| 595 | =item * | ||||||||||||||||||||||||||||
| 596 | |||||||||||||||||||||||||||||
| 597 | Graham Knop <haarg@haarg.org> | ||||||||||||||||||||||||||||
| 598 | |||||||||||||||||||||||||||||
| 599 | =item * | ||||||||||||||||||||||||||||
| 600 | |||||||||||||||||||||||||||||
| 601 | Jesse Luehrs <doy@tozt.net> | ||||||||||||||||||||||||||||
| 602 | |||||||||||||||||||||||||||||
| 603 | =item * | ||||||||||||||||||||||||||||
| 604 | |||||||||||||||||||||||||||||
| 605 | Randy Stauner <rwstauner@cpan.org> | ||||||||||||||||||||||||||||
| 606 | |||||||||||||||||||||||||||||
| 607 | =item * | ||||||||||||||||||||||||||||
| 608 | |||||||||||||||||||||||||||||
| 609 | Harley Pig <harleypig@gmail.com> | ||||||||||||||||||||||||||||
| 610 | |||||||||||||||||||||||||||||
| 611 | =item * | ||||||||||||||||||||||||||||
| 612 | |||||||||||||||||||||||||||||
| 613 | Chris Weyl <cweyl@alumni.drew.edu> | ||||||||||||||||||||||||||||
| 614 | |||||||||||||||||||||||||||||
| 615 | =item * | ||||||||||||||||||||||||||||
| 616 | |||||||||||||||||||||||||||||
| 617 | fayland <fayland@gmail.com> | ||||||||||||||||||||||||||||
| 618 | |||||||||||||||||||||||||||||
| 619 | =item * | ||||||||||||||||||||||||||||
| 620 | |||||||||||||||||||||||||||||
| 621 | Marcel Gruenauer <hanekomu@gmail.com> | ||||||||||||||||||||||||||||
| 622 | |||||||||||||||||||||||||||||
| 623 | =item * | ||||||||||||||||||||||||||||
| 624 | |||||||||||||||||||||||||||||
| 625 | Peter Shangov <pshangov@yahoo.com> | ||||||||||||||||||||||||||||
| 626 | |||||||||||||||||||||||||||||
| 627 | =item * | ||||||||||||||||||||||||||||
| 628 | |||||||||||||||||||||||||||||
| 629 | Ricardo SIGNES <rjbs@cpan.org> | ||||||||||||||||||||||||||||
| 630 | |||||||||||||||||||||||||||||
| 631 | =back | ||||||||||||||||||||||||||||
| 632 | |||||||||||||||||||||||||||||
| 633 | =head1 COPYRIGHT AND LICENCE | ||||||||||||||||||||||||||||
| 634 | |||||||||||||||||||||||||||||
| 635 | This software is copyright (c) 2009 by Jérôme Quelin. | ||||||||||||||||||||||||||||
| 636 | |||||||||||||||||||||||||||||
| 637 | This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||||||||||
| 638 | the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||||||||||
| 639 | |||||||||||||||||||||||||||||
| 640 | =cut | ||||||||||||||||||||||||||||
| 641 | |||||||||||||||||||||||||||||
| 642 | __DATA__ | ||||||||||||||||||||||||||||