; VERSION
[Git::NextVersion]
- [NextRelease]
- [ReversionOnRelease]
- prompt = 1
; GATHER
[Git::GatherDir]
filename = README
location = build
type = text
- [TravisYML]
- build_branch = /^(dist|build\/.*)$/
[Manifest]
[ManifestSkip]
[MakeMaker] ; override with the "installer" attribute
; RELEASE
+ [NextRelease]
[CheckChangesHasContent]
[Git::Check]
[RunExtraTests]
use Dist::Zilla::Util;
use Moose;
+use Perl::Version;
use namespace::autoclean;
+=attr max_target_perl
+
+Specify the minimum perl version. Defaults to C<5.10.1>.
+
+=cut
+
+has max_target_perl => (
+ is => 'ro',
+ isa => 'Str',
+ lazy => 1,
+ default => sub {
+ my $self = shift;
+ $self->payload->{'Test::MinimumVersion.max_target_perl'}
+ // $self->payload->{max_target_perl}
+ // '5.10.1';
+ },
+);
+
+=attr no_index
+
+Set directories to not index.
+
+Default:
+
+=cut
+
+has no_index => (
+ is => 'ro',
+ isa => 'ArrayRef',
+ lazy => 1,
+ default => sub {
+ my $self = shift;
+ [split(/\s+/, $self->payload->{'MetaNoIndex.directories'}
+ // $self->payload->{no_index}
+ // 'eg share shares t xt')];
+ },
+);
+
=attr authority
Specify the release authority. Defaults to C<cpan:CCM>.
is => 'ro',
isa => 'Str',
lazy => 1,
- default => sub { shift->payload->{installer} || 'MakeMaker' },
+ default => sub { shift->payload->{installer} // 'MakeMaker' },
);
=attr airplane
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 @no_index = @{$self->no_index};
+ my @allow_dirty = (@copy_from_build, qw(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';
+ my $perl_version_target = $self->max_target_perl;
if ($self->no_upload) {
say '[@Author::CCM] WARNING! WARNING! WARNING! *** You are in no_upload mode!! ***';
# VERSION
['Git::NextVersion'],
- ['NextRelease'],
- ['ReversionOnRelease' => {prompt => 1}],
# GATHER
['Git::GatherDir' => {exclude_filename => [@gather_exclude]}],
# 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' => {build_branch => '/^(dist|build\/.*)$/', perl_version => $perl_version, perl_version_build => $perl_version_build}],
+ ['ReadmeAnyFromPod' => 'RepoReadme' => {filename => 'README.md', location => 'root', type => 'markdown', phase => 'release'}],
+ ['ReadmeAnyFromPod' => 'DistReadme' => {filename => 'README', location => 'build', type => 'text'}],
['Manifest'],
['ManifestSkip'],
$self->installer, # e.g. MakeMaker
# RELEASE
+ ['NextRelease'],
['CheckChangesHasContent'],
['Git::Check' => {allow_dirty => [@allow_dirty], untracked_files => 'ignore'}],
['RunExtraTests'],