X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FRunMode.pm;h=dc4d17f9ccd0c3b73e3c035744c929d652b8a657;hb=cdda207bedb96c29134adbd3d6c63305d563c16f;hp=1e31436634b4c887026d690bc5379dbadeae8cca;hpb=d53547b06fedcc81c705f787c8b94bed7bfaa084;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/RunMode.pm b/t/lib/DBICTest/RunMode.pm index 1e31436..dc4d17f 100644 --- a/t/lib/DBICTest/RunMode.pm +++ b/t/lib/DBICTest/RunMode.pm @@ -216,6 +216,14 @@ sub is_smoker { ; } +sub is_ci { + return ( + ($ENV{TRAVIS}||'') eq 'true' + and + ($ENV{TRAVIS_REPO_SLUG}||'') =~ m|\w+/dbix-class$| + ) +} + sub is_plain { return (! __PACKAGE__->is_smoker && ! __PACKAGE__->is_author && ! $ENV{RELEASE_TESTING} ) }