--- Canary-Stability/Stability.pm 2015/06/25 14:38:27 1.5 +++ Canary-Stability/Stability.pm 2019/04/22 10:40:01 1.10 @@ -23,12 +23,13 @@ package Canary::Stability; BEGIN { - $VERSION = 2001; + $VERSION = 2013; } sub sgr { # we just assume ANSI almost everywhere # red 31, yellow 33, green 32 + local $| = 1; $ENV{PERL_CANARY_STABILITY_COLOUR} ne 0 and ((-t STDOUT and length $ENV{TERM}) or $ENV{PERL_CANARY_STABILITY_COLOUR}) @@ -43,11 +44,39 @@ $minperl ||= 5.008002; + print < $VERSION) { sgr 33; print < + +When this variable is set to a true value and the perl minimum version +requirement is not met, the module will exit, which should skip testing +under automated testing environments. + +This is done to avoid false failure or success reports when the chances of +success are already quite low and the failures are not supported by the +author. + =back =head1 AUTHOR Marc Lehmann - http://home.schmorp.de/ + http://software.schmorp.de/pkg/Canary-Stability.html =cut