Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add authortest target and call it from disttest target

  • Loading branch information...
commit c6088067c277e5764bb4103447395649f0c14e5d 1 parent 230065e
@gray authored
Showing with 16 additions and 1 deletion.
  1. +16 −1 Makefile.PL
View
17 Makefile.PL
@@ -15,7 +15,7 @@ my %conf = (
'URI' => 1.36,
},
META_MERGE => {
- resources => {
+ resources => {
repository => 'http://github.com/gray/geo-coder-mapquest',
},
recommends => {
@@ -31,3 +31,18 @@ unless (eval { ExtUtils::MakeMaker->VERSION(6.46) }) {
}
WriteMakefile(%conf);
+
+
+sub MY::postamble {
+ return <<" MAKE_FRAG";
+authortest:
+\t\$(MAKE) -e \$(TEST_TYPE) TEST_FILES="xt/*.t"
+ MAKE_FRAG
+}
+
+sub MY::dist_test {
+ my $self = shift;
+ return $self->MM::dist_test . <<" MAKE_FRAG";
+\tcd \$(DISTVNAME) && \$(MAKE) authortest \$(PASTHRU)
+ MAKE_FRAG
+}
Please sign in to comment.
Something went wrong with that request. Please try again.