From: Arthur Axel "fREW" Schmidt Date: Tue, 19 Jan 2010 16:34:10 +0000 (+0000) Subject: add test to ensure no tabs in perl files X-Git-Tag: v0.08116~48 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=281738a4715e2a14f1b0aff332af5ec8866cadb9;hp=d7a58a293db88796ae70bbfaad9edae9fd94abd0 add test to ensure no tabs in perl files --- diff --git a/Makefile.PL b/Makefile.PL index f96742b..ded86c5 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -19,6 +19,7 @@ test_requires 'Test::More' => '0.92'; test_requires 'Test::Warn' => '0.21'; test_requires 'File::Temp' => '0.22'; +test_requires 'Test::NoTabs' => '0.9'; # Core @@ -141,7 +142,7 @@ resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/db # Deprecated/internal modules need no exposure no_index directory => $_ for (qw| lib/DBIx/Class/SQLAHacks - lib/DBIx/Class/PK/Auto + lib/DBIx/Class/PK/Auto |); no_index package => $_ for (qw/ DBIx::Class::Storage::DBI::AmbiguousGlob @@ -185,7 +186,7 @@ WriteAll(); # Re-write META.yml to _exclude_ all forced requires (we do not want to ship this) if ($Module::Install::AUTHOR) { - Meta->{values}{build_requires} = [ grep + Meta->{values}{build_requires} = [ grep { not exists $force_requires_if_author{$_->[0]} } ( @{Meta->{values}{build_requires}} ) ]; diff --git a/t/06notabs.t b/t/06notabs.t new file mode 100644 index 0000000..5a09f90 --- /dev/null +++ b/t/06notabs.t @@ -0,0 +1,13 @@ +use warnings; +use strict; + +use Test::More; +use Test::NoTabs; +use lib 't/lib'; +use DBICTest; +unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) { + plan( skip_all => "Author tests not required for installation" ); +} +all_perl_files_ok(); + +done_testing;