Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New release procedure for dzil.

  • Loading branch information...
commit 076cde985bc4f483439b01e580a0ce1fdc8103a2 1 parent 4ad9c4f
@pjcj authored
Showing with 30 additions and 45 deletions.
  1. +1 −0  .gitignore
  2. +0 −1  Makefile.PL
  3. +17 −11 dist.ini
  4. +12 −33 docs/RELEASE
View
1  .gitignore
@@ -25,3 +25,4 @@ dll.exp
Devel-Cover-*
tags
README
+.build/
View
1  Makefile.PL
@@ -19,7 +19,6 @@ use File::Copy;
$| = 1;
my $Version = "0.79";
-my $Date = "5th August 2011";
my $Author = 'pjcj@cpan.org';
my @perlbug = ("perlbug", "-a", $Author,
"-s", "Installation of Devel::Cover $Version");
View
28 dist.ini
@@ -4,40 +4,46 @@ author = PJCJ
license = Perl_5
copyright_holder = PJCJ
-[VersionFromScript]
+[VersionFromScript] ; the version os stored in Makefile.PL
script = make show_version
+[Run::BeforeBuild] ; commands to run before build phase
+run = make README
+
[GatherDir] ; gather files from the dist dir
include_dotfiles = 1
[ManifestSkip] ; remove gathered files specified by MANIFEST.SKIP
[ExecDir] ; mark bin as the dir to contain scripts
[OurPkgVersion] ; add versions to the packages
[PodVersion] ; add versions to the POD of packages
-; [License] ; add LICENCE file
+; [License] ; add LICENSE file
[Manifest] ; builds the manifest from the gathered files
+[Run::Test]
+run = perl Makefile.PL && HARNESS_OPTIONS=j9:c HARNESS_TIMER=1 make test
+
+[Git::Check]
+allow_dirty = Makefile.PL
[CheckChangesHasContent] ; ensure Changes has been updated
[NextRelease] ; fixes up the Changes file
format = Release %v - %{d}dth %{MMMM yyyy}d
+[Git::Tag] ; tag the release
+[Git::Commit]
+
[TestRelease] ; tests the dist before releasing
[ConfirmRelease] ; asks for manual confirmation of release
[UploadToCPAN] ; uploads to cpan
-
-[Run::BeforeBuild]
-run = make README
+; [Git::Push] ; push to remote repository
; [Run::AfterBuild]
; run = chdir %d && %x -e 'rename "LICENSE" => "LICENCE"' # yeah, yeah, yeah
; following can do stuff, but aren't used yet
-;[ExtraTests]
-;[PruneCruft ]
-;[MetaYAML ] ; builds META.yaml
-;[MetaJSON ] ; builds META.json
-;[ShareDir ]
-;[MakeMaker ]
+; [ExtraTests]
+; [PruneCruft ]
+; [ShareDir ]
; [InsertCopyright]
; [EOLTests]
View
45 docs/RELEASE
@@ -1,48 +1,27 @@
- 1. Make sure the MANIFEST is up to date.
- $ make mani
-
- 2. Check for changes and commit if necessary.
- $ git diff
- $ git commit -v MANIFEST
-
- 3. Update CHANGES.
- - Show the release number and date of release.
+1. Update Changes.
- Add important changes.
- Credit the author as appropriate.
- Include RT numbers.
- 4. Commit the change.
- $ git commit -m 'Add changes for X.YZ release.' CHANGES
-
- 5. Update version number and date in Makefile.PL.
- - Then propagate the change.
- $ perl Makefile.PL && make
-
- 6. Generate META.yml and META.json
- $ make distdir
- $ cp Devel-Cover-X.YZ/META.* .
- $ rm -r Devel-Cover-X.YZ
+2. Update version number in Makefile.PL.
- 7. Run basic tests.
+3. Run basic tests.
$ perl Makefile.PL && make
$ make test
- 8. Test against all versions.
+4. Test against all versions.
$ make all_test
- or, if you have multiple cores available:
- $ HARNESS_OPTIONS=j7:c HARNESS_TIMER=1 make all_test
+ $ HARNESS_OPTIONS=j9:c HARNESS_TIMER=1 make all_test
- 9. Return to base perl version.
+5. Return to base perl version.
$ perl Makefile.PL && make
-10. Run dist test.
- $ make disttest
-
-11. Commit the change.
- $ git commit -a -m 'Update to version X.YZ'
+6. Run final tests
+ $ dzil test
-12. Tag the release.
- $ git tag -a vX.YZ -m 'Release vX.YZ'
+7. Make the distribution.
+ $ dzil build
-13. Make the distribution.
- $ make dist
+8. Make the release.
+ $ dzil release
Please sign in to comment.
Something went wrong with that request. Please try again.