ShipIt.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package ShipIt;
2 use strict;
3 use ShipIt::Conf;
4 use ShipIt::State;
5 use ShipIt::VC;
6 use ShipIt::Util;
7  
8 our $VERSION = '0.60';
9  
10 =head1 NAME
11  
12 ShipIt - software release tool
13  
14 =head1 SYNOPSIS
15  
16 shipit
17  
18 =head1 OVERVIEW
19  
20 Releasing a new version of software takes a lot of steps... finding the next version number (and making sure you didn't already use that version number before), making sure your changelog is updated, making sure your "make dist" results in a tarball that builds, commiting changes (with updated version number), tagging, and uploading the tarball somewhere.
21  
22 Or maybe more steps. Or not some of the above. Maybe you forgot something! And maybe you manage multiple projects, and each project has a different release process.
23  
24 This is all a pain in the ass.
25  
26 You want to be hacking, not jumping through hoops.
27  
28 Your contributors want to see their patches actually make it into a release, which won't happen if you're afraid of releases.
29  
30 B<shipit> automates all the hell. It makes life beautiful.
31  
32 =head1 HOW TO USE
33  
34 Three steps: run "shipit --write-config" to make a dummy/template config, edit config file, then run "shipit" again
35  
36 =head2 Step 1/3: Write out template config file
37  
38 In the root directory of your project, run:
39  
40 $ shipit --write-config
41  
42 And it'll bring up your $EDITOR, so you can do step 2...
43  
44 =head2 Step 2/3: Tweak your config file
45  
46 The default config file is something like:
47  
48 # auto-generated shipit config file.
49 steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist
50  
51 # svn.tagpattern = MyProj-%v
52 # svn.tagpattern = http://code.example.com/svn/tags/MyProj-%v
53  
54 # CheckChangeLog.files = ChangeLog, MyProj.CHANGES
55  
56 Tweak away. You may want to add the "UploadCPAN" step at the end of
57 steps, as it isn't included by default. It requires L<cpan-upload> or
58 L<cpan-upload-http> installed.
59  
60 The comma-separate steps are L<ShipIt::Step> subclasses. Each one may
61 or may accept additional config, as you can see the CheckChangeLog
62 step does. (although CheckChangeLog by default figures it out, how
63 your changelog files are named)
64  
65 All values have sensible defaults, and any missing/extra keys generate
66 errors.
67  
68 For more info on svn.tagpattern, see L<ShipIt::VC::SVN>.
69  
70 =head2 Step 3/3: Run 'shipit' again
71  
72 From the root directory of your project, where your new .shipit config file is, type B<shipit>:
73  
74 you@host:~/proj$ shipit
75  
76 And then it does the rest, after verifying with you the version number you want to release.
77  
78 If you're really cautious, run with "shipit --dry-run" instead.
79  
80 =head1 CONTRIBUTING
81  
82 If you'd like to contribute to ShipIt (with either a bug report or patch), see:
83  
84 L<http://contributing.appspot.com/shipit>
85  
86 =cut
87  
88 1;