Skip to content

Commit

Permalink
Stop running on smokers with a screwed up Package::Stash
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi committed Dec 28, 2010
1 parent 02050e7 commit 4557be6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Revision history for DBIx::Class
- Promote forgotten Hash::Merge optdep to a hard requirement
- Skip t/storage/error.t on smokers with leaking perls
- Fix t/storage/txn.t deadlocks on slower machines
- Do not run on smokers if a trial Package::Stash is found

0.08125 2010-12-27 04:30 (UTC)
* New Features / Changes
Expand Down
16 changes: 16 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,22 @@ warn $optdep_msg if $Module::Install::AUTHOR;
auto_install();
warn $optdep_msg if $Module::Install::AUTHOR;

# if this is a smoker, and some known-to-be-trouble reqs are already present
# (are not missing reqs) - we can exit 1 now so that we register an N/A report
# instead of a FAIL
if ($ENV{AUTOMATED_TESTING} && ! $ENV{PERL5_CPANM_IS_RUNNING} && ! $ENV{RELEASE_TESTING}) {

eval {
require Package::Stash;
my $psv = Package::Stash->VERSION;
if ($psv != 0.13 and $psv >= 0.09 and $psv <= 0.15) {
warn "A trial version $psv of Package::Stash detected (known to break namespace::clean). "
."Aborting useless smoke test\n";
exit 1;
}
};
}

# re-create various autogenerated documentation bits
if ($Module::Install::AUTHOR) {

Expand Down

0 comments on commit 4557be6

Please sign in to comment.