CPAN::Reporter::Config - Config file options for CPAN::Reporter
This documentation refers to version 0.99_15
From the CPAN shell:
cpan> o conf init test_report
Default options for CPAN::Reporter are read from a configuration file .cpanreporter/config.ini in the user's home directory (Unix and OS X) or "My Documents" directory (Windows).
.cpanreporter/config.ini
The configuration file is in "ini" format, with the option name and value separated by an "=" sign
email_from = "John Doe" <johndoe@nowhere.org> cc_author = no
Interactive configuration of email address, mail server and common action prompts may be repeated at any time from the CPAN shell.
If a configuration file does not exist, it will be created the first time interactive configuration is performed.
Subsequent interactive configuration will also include any advanced options that have been added manually to the configuration file.
CPAN::Reporter requires users to provide an email address that will be used in the "From" header of the email to cpan-testers@perl.org.
email_from = <email address> -- email address of the user sending the test report; it should be a valid address format, e.g.:
email_from = <email address>
user@domain John Doe <user@domain> "John Q. Public" <user@domain>
Because cpan-testers uses a mailing list to collect test reports, it is helpful if the email address provided is subscribed to the list. Otherwise, test reports will be held until manually reviewed and approved.
cpan-testers
Subscribing an account to the cpan-testers list is as easy as sending a blank email to cpan-testers-subscribe@perl.org and replying to the confirmation email.
By default, Test::Reporter attempts to send mail directly to perl.org mail servers. This may fail if a user's computer is behind a network firewall that blocks outbound email. In this case, the following option should be set to the outbound mail server (i.e., SMTP server) as provided by the user's Internet service provider (ISP):
smtp_server = <server list> -- one or more alternate outbound mail servers if the default perl.org mail servers cannot be reached; multiple servers may be given, separated with a space (none by default)
smtp_server = <server list>
In at least one reported case, an ISP's outbound mail servers also refused to forward mail unless the email_from was from the ISP-given email address.
email_from
Several steps in the generation of a test report are optional. Configuration options control whether an action should be taken automatically or whether CPAN::Reporter should prompt the user for the action to take. The action to take may be different for each report grade.
Valid actions, and their associated meaning, are as follows:
yes -- automatic yes
yes
no -- automatic no
no
ask/no or just ask -- ask each time, but default to no
ask/no
ask
ask/yes -- ask each time, but default to yes
ask/yes
For "ask" prompts, the default will be used if return is pressed immediately at the prompt or if the PERL_MM_USE_DEFAULT environment variable is set to a true value.
PERL_MM_USE_DEFAULT
Action prompt options take one or more space-separated "grade:action" pairs, which are processed left to right.
edit_report = fail:ask/yes pass:no
An action by itself is taken as a default to be used for any grade which does not have a grade-specific action. A default action may also be set by using the word "default" in place of a grade.
edit_report = ask/no edit_report = default:ask/no
A grade by itself is taken to have the action "yes" for that grade.
edit_report = default:no fail
Multiple grades may be specified together by separating them with a slash.
edit_report = pass:no fail/na/unknown:ask/yes
The action prompt options included in interactive configuration are:
edit_report = <grade:action> ... -- edit the test report before sending? (default:ask/no pass/na:no)
edit_report = <grade:action> ...
send_report = <grade:action> ... -- should test reports be sent at all? (default:ask/yes pass/na:yes)
send_report = <grade:action> ...
Note that if send_report is set to "no", CPAN::Reporter will still go through the motions of preparing a report, but will discard it rather than send it.
send_report
A better way to disable CPAN::Reporter temporarily is with the CPAN option test_report:
test_report
cpan> o conf test_report 0
These additional options are only necessary in special cases, for example if the default editor cannot be found or if reports shouldn't be sent in certain situations.
cc_author = <grade:action> ... -- should module authors should be sent a copy of the test report at their author@cpan.org address? (default:yes pass/na:no)
cc_author = <grade:action> ...
author@cpan.org
editor = <editor> -- editor to use to edit the test report; if not set, Test::Reporter will use environment variables VISUAL, EDITOR or EDIT (in that order) to find an editor
editor = <editor>
VISUAL
EDITOR
EDIT
send_duplicates = <grade:action> ... -- should duplicates of previous reports be sent, regardless of send_report? (default:no)
send_duplicates = <grade:action> ...
send_PL_report = <grade:action> ... -- if defined, used in place of send_report during the PL phase
send_PL_report = <grade:action> ...
send_make_report = <grade:action> ... -- if defined, used in place of send_report during the make phase
send_make_report = <grade:action> ...
send_test_report = <grade:action> ... -- if defined, used in place of send_report during the test phase
send_test_report = <grade:action> ...
transport = <transport> -- if defined, passed to the transport() method of Test::Reporter. Valid options are 'Net::SMTP' or 'Mail::Send'. (CPAN::Reporter uses Net::SMTP for this by default.)
transport = <transport>
transport()
If these options are manually added to the configuration file, they will be included (and preserved) in subsequent interactive configuration.
These options are useful for debugging only:
debug = <boolean> -- turns debugging on/off
debug = <boolean>
email_to = <email address> -- alternate destination for reports instead of cpan-testers@perl.org; used for testing
email_to = <email address>
cpan-testers@perl.org
CPAN::Reporter
CPAN::Reporter::FAQ
David A. Golden (DAGOLDEN)
Copyright (c) 2006, 2007 by David A. Golden
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Files produced as output though the use of this software, including generated copies of boilerplate templates provided with this software, shall not be considered Derivative Works, but shall be considered the original work of the Licensor.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
To install CPAN::Reporter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Reporter
CPAN shell
perl -MCPAN -e shell install CPAN::Reporter
For more information on module installation, please visit the detailed CPAN module installation guide.