Skip to content
Browse files

skip testing only for the Task::DWIM

  • Loading branch information...
1 parent 0ea7759 commit edcc7154591ab26423738065dd739497d4031183 @szabgab szabgab committed Dec 24, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 bin/release.pl
View
13 bin/release.pl
@@ -13,8 +13,6 @@
opendir my $dh, 'lists' or die;
my $pwd = cwd();
-my $test = shift;
-
my $version = Task::DWIM->VERSION;
my @tasks;
@@ -53,7 +51,7 @@
copy 'MANIFEST.SKIP', "$dir/" or dir $!;
copy 'README', "$dir/" or dir $!;
- build($dir);
+ build($dir, test => 1);
#last;
}
@@ -75,17 +73,20 @@
copy 'lib/Task/DWIM.pm', "$dir/lib/Task/" or die $!;
copy 'Makefile.PL', $dir or die $!;
copy 't/00-load.t', "$dir/t/" or die $!;
- build($dir);
+
+ # skip testing as the new Task::DWIM packages are not yet installed
+ # so this test would fail
+ build($dir, test => 0);
}
sub build {
- my ($dir) = @_;
+ my ($dir, %params) = @_;
chdir $dir or die;
system "$^X Makefile.PL" and die;
system "make" and die;
system "make manifest" and die;
- if ($test) {
+ if ($params{test}) {
system "make test" and die;
}

0 comments on commit edcc715

Please sign in to comment.
Something went wrong with that request. Please try again.