From: Graham Knop Date: Tue, 28 Mar 2017 00:16:12 +0000 (+0200) Subject: fatal prereqs on release X-Git-Tag: v0.003000~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f0bbeff7a84f54c39cb0025d134f75c5169fb671;p=p5sagit%2FDistar.git fatal prereqs on release --- diff --git a/lib/Distar.pm b/lib/Distar.pm index ae877ea..68233b3 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -154,10 +154,14 @@ sub write_manifest_skip { CHANGELOG => $self->{CHANGELOG} ||= 'Changes', DEV_NULL_STDOUT => ($self->{DEV_NULL} ? '>'.File::Spec->devnull : ''), FAKE_RELEASE => '', + DISTTEST_MAKEFILE_PARAMS => '', ); + my $dist_test = $self->SUPER::dist_test(@_); + $dist_test =~ s/(\bMakefile\.PL\b)/$1 \$(DISTTEST_MAKEFILE_PARAMS)/; + join('', - $self->SUPER::dist_test(@_), + $dist_test, "\n\n# --- Distar section:\n\n", (map "$_ = $vars{$_}\n", sort keys %vars), <<'END', @@ -171,7 +175,7 @@ check-manifest: check-cpan-upload: $(NOECHO) cpan-upload -h $(DEV_NULL_STDOUT) releasetest: - $(MAKE) disttest RELEASE_TESTING=1 PASTHRU="$(PASTHRU) TEST_FILES=\"$(TEST_FILES)\"" + $(MAKE) disttest RELEASE_TESTING=1 DISTTEST_MAKEFILE_PARAMS="PREREQ_FATAL=1" PASTHRU="$(PASTHRU) TEST_FILES=\"$(TEST_FILES)\"" release: preflight $(MAKE) releasetest git commit -a -m "Release commit for $(VERSION)"