-
Notifications
You must be signed in to change notification settings - Fork 4
/
dist.ini
123 lines (101 loc) · 3.21 KB
/
dist.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name = LWP-MediaTypes
author = Gisle Aas <[email protected]>
license = Perl_5
copyright_holder = Gisle Aas
copyright_year = 1995
[Git::GatherDir]
exclude_filename = cpanfile
exclude_filename = LICENSE
exclude_filename = META.json
exclude_filename = README.md
[MetaConfig]
[MetaProvides::Package]
[MetaNoIndex]
directory = t
directory = xt
[MetaYAML]
[MetaJSON]
[MetaResources]
x_IRC = irc://irc.perl.org/#lwp
x_MailingList = mailto:[email protected]
[Git::Contributors]
[GithubMeta]
issues = 1
user = libwww-perl
[Manifest]
[License]
[InstallGuide]
; make the bin dir executables
[ExecDir]
; [ShareDir]
[Prereqs]
perl = 5.006002
[AutoPrereqs]
[CPANFile]
[MakeMaker]
; TODO strict and warnings to quiet the kwalitee tests
; [Test::Kwalitee]
; filename = xt/author/kwalitee.t
[MojibakeTests]
[Test::Version]
[Test::ReportPrereqs]
[Test::Compile]
bail_out_on_fail = 1
xt_mode = 1
; avoid failing on 5.8: Warning: Use of "keys" without parentheses is ambiguous at Data/Dump/Trace.pm line 262.
[Substitute / 00-compile.t]
file = xt/author/00-compile.t
code = s{(is\(scalar\(\@warnings\), 0, 'no warnings found'\))}{TODO: \{\nlocal \$TODO = 'Data::Dump::Trace warns on 5.8' if \$\] < '5.009';\n$1};
code = s{(^\s+or diag 'got warnings: ', explain\(\\\@warnings\);)}{$1\n\}};
[Test::Portability]
; TODO perltidy for NoTabs and namespace::autoclean
; [Test::CleanNamespaces] ; TODO
; [Test::NoTabs] ; TODO
[Test::EOL]
; We run release tests in travis. but make the changes-has-content test TODO only for master.
; This will prod pull request submitters to add a Changes entry.
[Test::ChangesHasContent]
[Substitute / changes_has_content.t]
file = xt/release/changes_has_content.t
code = s{^(note 'Checking Changes')}{if \(\(\$ENV\{TRAVIS_PULL_REQUEST\} \|\| '') eq 'false'\) \{\n chomp\(my \$branch_name = \(\$ENV\{TRAVIS_BRANCH\} || \`git rev-parse --abbrev-ref HEAD\`\)\);\n \$TODO = 'Changes need not have content for this release yet if this is only the master branch'\n if \(\$branch_name \|\| ''\) eq 'master';\n\}\n\n$1}
[Test::MinimumVersion]
[PodSyntaxTests]
; Not 100% clear why file_exts() is undocumented. Maybe meant to be private.
[Test::Pod::Coverage::Configurable]
trustme = LWP::MediaTypes => qr/^(?:file_exts)$/
[Test::PodSpelling]
wordlist = Pod::Wordlist
spell_cmd = aspell list
stopword = eg
[Git::Check]
allow_dirty =
[CheckStrictVersion]
decimal_only = 1
[RunExtraTests]
[CheckChangeLog]
[CheckChangesHasContent]
[TestRelease]
[UploadToCPAN]
; Create Readme
[ReadmeAnyFromPod / Markdown_Readme]
source_filename = lib/LWP/MediaTypes.pm
type = markdown
filename = README.md
location = root
phase = release
[CopyFilesFromRelease]
filename = cpanfile
filename = META.json
filename = LICENSE
; The distribution version is read from lib/LWP.pm's $VERSION.
; At release, all versions are bumped.
; To change the version at release time, you can either edit LWP.pm's
; $VERSION, or set the V environment variable, e.g. V=1.23 dzil release
[@Git::VersionManager]
commit_files_after_release = cpanfile
commit_files_after_release = META.json
commit_files_after_release = LICENSE
commit_files_after_release = README.md
[Git::Push]
; listed late, to allow all other plugins which do BeforeRelease checks to run first.
[ConfirmRelease]