; VERSION
[Git::NextVersion]
- [NextRelease]
[ReversionOnRelease]
prompt = 1
[PodSyntaxTests]
[Test::Pod::No404s]
[Test::Compile]
+ [Test::MinimumVersion]
+ max_target_perl = 5.10.1
[Test::EOL]
[Test::NoTabs]
[Test::Perl::Critic]
location = build
type = text
[TravisYML]
+ build_branch = /^(dist|build\/.*)$/
[Manifest]
[ManifestSkip]
[MakeMaker] ; override with the "installer" attribute
; RELEASE
+ [NextRelease]
[CheckChangesHasContent]
[Git::Check]
[RunExtraTests]
=cut
+use 5.014;
use warnings;
use strict;
sub configure {
my $self = shift;
+ my @copy_from_build = qw(LICENSE);
+ my @network_plugins = qw(Git::Push Test::Pod::No404s UploadToCPAN);
+ my @gather_exclude = (@copy_from_build, qw(README.md));
+ my @gather_prune = qw(dist.ini);
+ my @no_index = qw(eg share shares t xt);
+ my @allow_dirty = (@copy_from_build, qw(.travis.yml Changes LICENSE README.md));
+ my @git_remotes = qw(github origin);
+ my @check_files = qw(:InstallModules :ExecFiles :TestFiles :ExtraTestFiles);
+ my $perl_version_target = '5.10.1';
+ my $perl_version = '5.24 5.22 5.20 5.18 5.16 5.14';
+ my $perl_version_build = $perl_version . ' 5.12 5.10 -5.8';
+
if ($self->no_upload) {
- print '[@Author::CCM] WARNING! WARNING! WARNING! *** You are in no_upload mode!! ***', "\n";
+ say '[@Author::CCM] WARNING! WARNING! WARNING! *** You are in no_upload mode!! ***';
}
- my @copy_from_build = qw(LICENSE);
- my @network_plugins = qw(Git::Push Test::Pod::No404s UploadToCPAN);
- my @gather_exclude = (@copy_from_build, qw(README.md));
- my @gather_prune = qw(dist.ini);
- my @no_index = qw(eg share shares t xt);
- my @allow_dirty = (@copy_from_build, qw(.travis.yml Changes LICENSE README.md));
- my @git_remotes = qw(github origin);
- my @check_files = qw(:InstallModules :ExecFiles :TestFiles :ExtraTestFiles);
+ if (!$self->payload->{'TravisYML.support_builddir'}) {
+ # swap perl_version and perl_version_build because DZP::TravisYML got it backwards!
+ # https://github.com/SineSwiper/Dist-Zilla-TravisCI/pull/40
+
+ my $tmp = $self->payload->{'TravisYML.perl_version_build'};
+ if (defined $self->payload->{'TravisYML.perl_version'}) {
+ $self->payload->{'TravisYML.perl_version_build'} = $self->payload->{'TravisYML.perl_version'}
+ }
+ else {
+ delete $self->payload->{'TravisYML.perl_version_build'};
+ }
+ if (defined $tmp) {
+ $self->payload->{'TravisYML.perl_version'} = $tmp;
+ }
+ else {
+ delete $self->payload->{'TravisYML.perl_version'};
+ }
+
+ ($perl_version, $perl_version_build) = ($perl_version_build, $perl_version);
+ }
my @plugins = (
# VERSION
['Git::NextVersion'],
- ['NextRelease'],
['ReversionOnRelease' => {prompt => 1}],
# GATHER
['PodSyntaxTests'],
['Test::Pod::No404s'],
['Test::Compile'],
+ ['Test::MinimumVersion' => {max_target_perl => $perl_version_target}],
['Test::EOL' => {finder => [@check_files]}],
['Test::NoTabs' => {finder => [@check_files]}],
['Test::Perl::Critic'],
# GENERATE FILES
['License'],
- ['ReadmeAnyFromPod' => 'repo readme' => {filename => 'README.md', location => 'root', type => 'markdown', phase => 'release'}],
- ['ReadmeAnyFromPod' => 'dist readme' => {filename => 'README', location => 'build', type => 'text'}],
- ['TravisYML'],
+ ['ReadmeAnyFromPod' => 'RepoReadme' => {filename => 'README.md', location => 'root', type => 'markdown', phase => 'release'}],
+ ['ReadmeAnyFromPod' => 'DistReadme' => {filename => 'README', location => 'build', type => 'text'}],
+ ['TravisYML' => {build_branch => '/^(dist|build\/.*)$/', perl_version => $perl_version, perl_version_build => $perl_version_build}],
['Manifest'],
['ManifestSkip'],
$self->installer, # e.g. MakeMaker
# RELEASE
+ ['NextRelease'],
['CheckChangesHasContent'],
['Git::Check' => {allow_dirty => [@allow_dirty], untracked_files => 'ignore'}],
['RunExtraTests'],