sub is_smoker {
return
- ( ($ENV{TRAVIS}||'') eq 'true' and ($ENV{TRAVIS_REPO_SLUG}||'') eq 'dbsrgits/dbix-class' )
+ __PACKAGE__->is_ci
||
( $ENV{AUTOMATED_TESTING} && ! $ENV{PERL5_CPANM_IS_RUNNING} && ! $ENV{RELEASE_TESTING} )
;
}
+sub is_ci {
+ return (
+ ($ENV{TRAVIS}||'') eq 'true'
+ and
+ ($ENV{TRAVIS_REPO_SLUG}||'') eq 'dbsrgits/dbix-class'
+ )
+}
+
sub is_plain {
return (! __PACKAGE__->is_smoker && ! __PACKAGE__->is_author && ! $ENV{RELEASE_TESTING} )
}
use strict;
use Test::More 'no_plan';
+use lib 't/lib';
+use DBICTest::RunMode;
my $authorcount = scalar do {
open (my $fh, '<', 'AUTHORS') or die "Unable to open AUTHORS - can't happen: $!\n";
map { chomp; ( ( ! $_ or $_ =~ /^\s*\#/ ) ? () : $_ ) } <$fh>;
} or die "Known AUTHORS file seems empty... can't happen...";
-# do not announce anything under travis - we are watching for STDERR silence
+# do not announce anything under ci - we are watching for STDERR silence
diag "\n\n$authorcount contributors made this library what it is today\n\n"
- unless ($ENV{TRAVIS}||'') eq 'true';
+ unless DBICTest::RunMode->is_ci;
ok 1;