[ReversionOnRelease]
prompt = 1
- [ExecDir]
- [ExtraTests]
-
; GATHER
[Git::GatherDir]
exclude_filename = LICENSE
[CopyFilesFromBuild]
copy = LICENSE
+ [ExecDir]
; PREREQS
[AutoPrereqs]
; RELEASE
[CheckChangesHasContent]
[Git::Check]
+ [RunExtraTests]
[TestRelease]
[ConfirmRelease]
[UploadToCPAN] ; disable with the "no_upload" attribute
=attr no_upload
-Do not upload to CPAN.
+Do not upload to CPAN or git push.
=cut
is => 'ro',
isa => 'Bool',
lazy => 1,
- default => 0,
+ default => sub { $ENV{DZIL_NO_UPLOAD} // shift->payload->{no_upload} // 0 },
);
=method configure
sub configure {
my $self = shift;
+ if ($self->no_upload) {
+ print '[@Author::CCM] WARNING! WARNING! WARNING! *** You are in no_upload mode!! ***', "\n";
+ }
+
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));
['NextRelease'],
['ReversionOnRelease' => {prompt => 1}],
- ['ExecDir'],
- ['ExtraTests'],
-
# GATHER
['Git::GatherDir' => {exclude_filename => [@gather_exclude]}],
['PruneCruft'],
['PruneFiles' => {filename => [@gather_prune]}],
['CopyFilesFromBuild' => {copy => [@copy_from_build]}],
+ ['ExecDir'],
# PREREQS
['AutoPrereqs'],
# RELEASE
['CheckChangesHasContent'],
['Git::Check' => {allow_dirty => [@allow_dirty], untracked_files => 'ignore'}],
+ ['RunExtraTests'],
['TestRelease'],
# ['ConfirmRelease'],
$self->no_upload ? ['FakeRelease'] : ['UploadToCPAN'],
['Git::Commit' => {allow_dirty => [@allow_dirty], commit_msg => 'Release %N %v%t%n%n%c'}],
['Git::CommitBuild' => {branch => '', release_branch => 'dist', release_message => 'Version %v%t'}],
['Git::Tag' => {tag_message => 'Version %v%t%n%n%c'}],
- ['Git::Push' => {push_to => 'origin master +master:refs/heads/release +dist', remotes_must_exist => 0}],
+ $self->no_upload ? () : ['Git::Push' => {push_to => 'origin master +master:refs/heads/release +dist', remotes_must_exist => 0}],
);