Created
March 11, 2012 20:51
-
-
Save rkitover/2018174 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Makefile.PL b/Makefile.PL | |
| index 28d5dac..ecd609a 100644 | |
| --- a/Makefile.PL | |
| +++ b/Makefile.PL | |
| @@ -89,6 +89,14 @@ my $test_requires = { | |
| 'Package::Stash' => '0.28', | |
| }; | |
| +use FindBin '$Bin'; | |
| +require "$Bin/lib/DBIx/Class/Optional/Dependencies.pm"; | |
| + | |
| +# if the user has this env var set and no SQLT installed, tests will fail | |
| +if ($ENV{DBICTEST_SQLT_DEPLOY}) { | |
| + test_requires %{ DBIx::Class::Optional::Dependencies->req_list_for('deploy') }; | |
| +} | |
| + | |
| # Bail out on parallel testing | |
| if ( | |
| ($ENV{HARNESS_OPTIONS}||'') =~ / (?: ^ | \: ) j(\d+) /x | |
| diff --git a/lib/DBIx/Class/Optional/Dependencies.pm b/lib/DBIx/Class/Optional/Dependencies.pm | |
| index 20fe329..7583662 100644 | |
| --- a/lib/DBIx/Class/Optional/Dependencies.pm | |
| +++ b/lib/DBIx/Class/Optional/Dependencies.pm | |
| @@ -1,6 +1,7 @@ | |
| package DBIx::Class::Optional::Dependencies; | |
| use warnings; | |
| +no warnings 'redefine'; | |
| use strict; | |
| use Carp (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment