Skip to content

Commit

Permalink
Actually support Dist::Zilla in some non-trivial capacity
Browse files Browse the repository at this point in the history
Finish up the support for Dist::Zilla, now we have (in theory)
complete Dist::Zilla integration where you can do:

    dzil release

And we'll make a release, bump the changelog & commit it, create a
tag, and then push it to origin.

This in effect reverts commit 9269fe9
of adding a Makefile.PL.It doesn't make any sense to check this file
in, with dist.ini this'll be created with "dzil build", and to test we
should be doing "dzil test" instead of "make test".
  • Loading branch information
avar committed Sep 1, 2012
1 parent fcbb440 commit 3f7aae3
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 88 deletions.
5 changes: 5 additions & 0 deletions Changes
@@ -0,0 +1,5 @@
Revision history for git-deploy

{{$NEXT}}

- Initial CPAN version
74 changes: 0 additions & 74 deletions Makefile.PL

This file was deleted.

4 changes: 1 addition & 3 deletions bin/git-deploy
Expand Up @@ -6,8 +6,6 @@
use strict;
use warnings;

our $VERSION= '5.00';

use Getopt::Long qw(GetOptions);
use Pod::Usage qw(pod2usage);
use Cwd qw(cwd abs_path);
Expand Down Expand Up @@ -440,7 +438,7 @@ GetOptions(
'v|verbose+' => \( $VERBOSE= ($ENV{GIT_DEPLOY_VERBOSE} || 0) ),
'help|?' => \( my $help ),
'man' => \( my $man ),
'V|version' => sub { print "$0 v$VERSION\n"; exit },
'V|version' => sub { print "$0 v" . ($Git::Deploy::VERSION || "Git") . "\n"; exit },
) or pod2usage(2);
pod2usage(1) if $help;
pod2usage( -exitstatus => 0, -verbose => 2 ) if $man;
Expand Down
41 changes: 31 additions & 10 deletions dist.ini
Expand Up @@ -6,26 +6,47 @@ copyright_year = 2012
main_module = bin/git-deploy

[@Filter]
-bundle = @Basic
-remove = MakeMaker
[MakeMaker::Runner]
[Clean]
bundle = @Basic
; Don't add a =head1 VERSION - https://metacpan.org/module/Dist::Zilla::Plugin::PodVersion
remove = PodVersion
remove = Readme
;; For debugging "dzil release"
;remove = UploadToCPAN
;[FakeRelease]
;user = AVAR

[VersionFromModule]
[AutoPrereqs]
[MetaJSON]

[MetaResources]
homepage = http://git-deploy.github.com
bugtracker.web = http://github.com/git-deploy/git-deploy/issues
repository.url = https://github.com/git-deploy/git-deploy.git
repository.web = https://github.com/git-deploy/git-deploy
repository.type = git

;[PodWeaver]
license = http://dev.perl.org/licenses/

[ReadmeAnyFromPod / ReadmePodInRoot]
type = pod
filename = README.pod
location = root
location = build

; Add $VERSION to lib/Git/Deploy.pm
[OurPkgVersion]

; Bump the Changelog version
[NextRelease]

;[NoTabsTests]
;[EOLTests]
; Get the version from git, and increment it on release
[Git::NextVersion]
first_version = 6.00

; Commit the Changes file once we modify it on release
[Git::Commit]

; Create a tag on release and push it and any commits
[Git::Tag]
[Git::Push]

; dzil clean after release
[Clean]
3 changes: 2 additions & 1 deletion lib/Git/Deploy.pm
Expand Up @@ -14,7 +14,8 @@ use File::Spec::Functions qw(catdir);
use Git::Deploy::Timing qw(push_timings);
use Git::Deploy::Say;

our $VERSION= "0.001";
# VERSION: generated by DZP::OurPkgVersion

our @ISA= qw(Exporter);

our @EXPORT= qw(
Expand Down

0 comments on commit 3f7aae3

Please sign in to comment.