RIP .travis.yml
[p5sagit/Sub-Name.git] / CONTRIBUTING
CommitLineData
67523925 1
2CONTRIBUTING
3
4Thank you for considering contributing to this distribution. This file
5contains instructions that will help you work with the source code.
6
6eb2af6c 7PLEASE NOTE that if you have any questions or difficulties, you can reach the
8maintainer(s) through the bug queue described later in this document
9(preferred), or by emailing the releaser directly. You are not required to
10follow any of the steps in this document to submit a patch or bug report;
11these are just recommendations, intended to help you (and help us help you
12faster).
67523925 13
71457ae8 14This distribution has a TODO file in the repository; you may want to check
15there to see if your issue or patch idea is mentioned.
16
67523925 17The distribution is managed with Dist::Zilla (https://metacpan.org/release/Dist-Zilla).
18However, you can still compile and test the code with a small Makefile.PL
19specifically for use in the repository. You can do:
20
21 perl Makefile.PL
22 make
23 make test
24
25As well as:
26
27 $ prove -bvr t
28or
29 $ perl -Mblib t/some_test_file.t
30
31You may need to satisfy some dependencies. The easiest way to satisfy
32dependencies is to install the last release -- this is available at
71457ae8 33https://metacpan.org/release/Sub-Name
67523925 34
35If you use cpanminus, you can do it without downloading the tarball first:
36
37 $ cpanm --reinstall --installdeps --with-recommends Sub::Name
38
39Dist::Zilla is a very powerful authoring tool, but requires a number of
40author-specific plugins. If you would like to use it for contributing,
41install it from CPAN, then run one of the following commands, depending on
42your CPAN client:
43
44 $ cpan `dzil authordeps --missing`
45or
46 $ dzil authordeps --missing | cpanm
47
48You should then also install any additional requirements not needed by the
49dzil build but may be needed by tests or other development:
50
51 $ cpan `dzil listdeps --author --missing`
52or
53 $ dzil listdeps --author --missing | cpanm
54
55Or, you can use the 'dzil stale' command to install all requirements at once:
56
57 $ cpan Dist::Zilla::App::Command::stale
58 $ cpan `dzil stale --all`
59or
60 $ cpanm Dist::Zilla::App::Command::stale
61 $ dzil stale --all | cpanm
62
63You can also do this via cpanm directly:
64
65 $ cpanm --reinstall --installdeps --with-develop --with-recommends Sub::Name
66
67Once installed, here are some dzil commands you might try:
68
69 $ dzil build
70 $ dzil test
71 $ dzil test --release
72 $ dzil xtest
73 $ dzil listdeps --json
74 $ dzil build --notgz
75
76You can learn more about Dist::Zilla at http://dzil.org/.
77
78The code for this distribution is hosted at GitHub. The repository is:
d845b752 79
71457ae8 80https://github.com/p5sagit/Sub-Name
d845b752 81
67523925 82You can submit code changes by forking the repository, pushing your code
0d5b12bc 83changes to your clone, and then submitting a pull request. Please include a
84suitable end-user-oriented entry in the Changes file describing your change.
85Detailed instructions for doing that is available here:
67523925 86
67523925 87https://help.github.com/articles/creating-a-pull-request
88
0d5b12bc 89All pull requests for this distribution will be automatically tested on Linux
90by Travis at: https://travis-ci.com/p5sagit/Sub-Name
91Results will be visible in the pull request on GitHub. Follow the appropriate
92links for details when tests fail. Changes will not be mergeable until all
93tests pass.
94
0ecb964d 95Generated files such as README, CONTRIBUTING, Makefile.PL, LICENSE etc should
96*not* be included in your pull request, as they will be updated automatically
97during the next release.
98
67523925 99If you have found a bug, but do not have an accompanying patch to fix it, you
100can submit an issue report here:
101https://rt.cpan.org/Public/Dist/Display.html?Name=Sub-Name
71457ae8 102or via email: bug-Sub-Name@rt.cpan.org
103
104There is also an irc channel available for users of this distribution, at
105irc://irc.perl.org/#toolchain
67523925 106
107If you send me a patch or pull request, your name and email address will be
6eb2af6c 108included in the documentation as a contributor (using the attribution on the
109commit or patch), unless you specifically request for it not to be. If you
110wish to be listed under a different name or address, you should submit a pull
67523925 111request to the .mailmap file to contain the correct mapping.
112
113
d845b752 114This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.015
0ecb964d 115from a template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.164.