line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: release your dist to the CPAN |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
use Dist::Zilla::Pragmas; |
4
|
4
|
|
|
4
|
|
2484
|
|
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
24
|
|
5
|
|
|
|
|
|
|
use Dist::Zilla::App -command; |
6
|
4
|
|
|
4
|
|
37
|
|
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
47
|
|
7
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
8
|
|
|
|
|
|
|
#pod |
9
|
|
|
|
|
|
|
#pod dzil release |
10
|
|
|
|
|
|
|
#pod |
11
|
|
|
|
|
|
|
#pod dzil release --trial |
12
|
|
|
|
|
|
|
#pod |
13
|
|
|
|
|
|
|
#pod # long form, jobs takes an integer |
14
|
|
|
|
|
|
|
#pod dzil release --jobs 9 |
15
|
|
|
|
|
|
|
#pod |
16
|
|
|
|
|
|
|
#pod # short form, same as above |
17
|
|
|
|
|
|
|
#pod dzil release -j 9 |
18
|
|
|
|
|
|
|
#pod |
19
|
|
|
|
|
|
|
#pod This command is a very, very thin wrapper around the |
20
|
|
|
|
|
|
|
#pod C<L<release|Dist::Zilla/release>> method on the Dist::Zilla object. It will |
21
|
|
|
|
|
|
|
#pod build, archive, and release your distribution using your Releaser plugins. |
22
|
|
|
|
|
|
|
#pod |
23
|
|
|
|
|
|
|
#pod Available options are: |
24
|
|
|
|
|
|
|
#pod |
25
|
|
|
|
|
|
|
#pod =over |
26
|
|
|
|
|
|
|
#pod |
27
|
|
|
|
|
|
|
#pod =item C<--trial>, will cause it to build a trial build. |
28
|
|
|
|
|
|
|
#pod |
29
|
|
|
|
|
|
|
#pod =item C<--jobs|-j=i>, number of test jobs run in parallel using L<Test::Harness|Test::Harness>. |
30
|
|
|
|
|
|
|
#pod |
31
|
|
|
|
|
|
|
#pod =back |
32
|
|
|
|
|
|
|
#pod |
33
|
|
|
|
|
|
|
#pod The default for L<Test::Harness|Test::Harness> is C<9>. The number of parallel jobs can also be specified setting C<HARNESS_OPTIONS>. |
34
|
|
|
|
|
|
|
#pod |
35
|
|
|
|
|
|
|
#pod HARNESS_OPTIONS=j9 |
36
|
|
|
|
|
|
|
#pod |
37
|
|
|
|
|
|
|
#pod See L<Test::Harness|Test::Harness> for more details. |
38
|
|
|
|
|
|
|
#pod |
39
|
|
|
|
|
|
|
#pod =cut |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
0
|
1
|
|
[ 'trial' => 'build a trial release that PAUSE will not index' ], |
43
|
|
|
|
|
|
|
[ 'jobs|j=i' => 'number of parallel test jobs to run' ], |
44
|
|
|
|
|
|
|
} |
45
|
0
|
|
|
0
|
1
|
|
|
46
|
|
|
|
|
|
|
my ($self, $opt, $arg) = @_; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
my $zilla; |
49
|
|
|
|
|
|
|
{ |
50
|
0
|
|
|
0
|
1
|
|
# isolate changes to RELEASE_STATUS to zilla construction |
51
|
|
|
|
|
|
|
local $ENV{RELEASE_STATUS} = $ENV{RELEASE_STATUS}; |
52
|
0
|
|
|
|
|
|
$ENV{RELEASE_STATUS} = 'testing' if $opt->trial; |
53
|
|
|
|
|
|
|
$zilla = $self->zilla; |
54
|
|
|
|
|
|
|
} |
55
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
56
|
0
|
0
|
|
|
|
|
local $ENV{HARNESS_OPTIONS} = join ':', split(':', $ENV{HARNESS_OPTIONS} // ''), 'j'.$opt->jobs if $opt->jobs; |
57
|
0
|
|
|
|
|
|
$self->zilla->release; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
0
|
0
|
0
|
|
|
|
1; |
61
|
0
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=pod |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=encoding UTF-8 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 NAME |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Dist::Zilla::App::Command::release - release your dist to the CPAN |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 VERSION |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
version 6.028 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 SYNOPSIS |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
dzil release |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
dzil release --trial |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
# long form, jobs takes an integer |
82
|
|
|
|
|
|
|
dzil release --jobs 9 |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
# short form, same as above |
85
|
|
|
|
|
|
|
dzil release -j 9 |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This command is a very, very thin wrapper around the |
88
|
|
|
|
|
|
|
C<L<release|Dist::Zilla/release>> method on the Dist::Zilla object. It will |
89
|
|
|
|
|
|
|
build, archive, and release your distribution using your Releaser plugins. |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Available options are: |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=over |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item C<--trial>, will cause it to build a trial build. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=item C<--jobs|-j=i>, number of test jobs run in parallel using L<Test::Harness|Test::Harness>. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=back |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
The default for L<Test::Harness|Test::Harness> is C<9>. The number of parallel jobs can also be specified setting C<HARNESS_OPTIONS>. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
HARNESS_OPTIONS=j9 |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
See L<Test::Harness|Test::Harness> for more details. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head1 PERL VERSION |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
This module should work on any version of perl still receiving updates from |
110
|
|
|
|
|
|
|
the Perl 5 Porters. This means it should work on any version of perl released |
111
|
|
|
|
|
|
|
in the last two to three years. (That is, if the most recently released |
112
|
|
|
|
|
|
|
version is v5.40, then this module should work on both v5.40 and v5.38.) |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
115
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
116
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
117
|
|
|
|
|
|
|
the minimum required perl. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head1 AUTHOR |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Ricardo SIGNES 😏 <cpan@semiotic.systems> |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
This software is copyright (c) 2022 by Ricardo SIGNES. |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
128
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=cut |