[libmoosex-has-sugar-perl] 56/120: script.pl: exit 0 early when master + 5.8 or STERILIZE_ENV unset

Intrigeri intrigeri at moszumanska.debian.org
Wed Aug 27 21:35:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag 0.05070422-source
in repository libmoosex-has-sugar-perl.

commit bab0daab69ffa7e6dabb140212ccf7c6b1a83ed1
Author: Kent Fredric <kentfredric at gmail.com>
Date:   Wed Oct 30 07:56:16 2013 +1300

    script.pl: exit 0 early when master + 5.8 or STERILIZE_ENV unset
---
 script.pl | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/script.pl b/script.pl
index 1f44ebe..b4dde39 100644
--- a/script.pl
+++ b/script.pl
@@ -41,7 +41,14 @@ if ( not env_exists('TRAVIS') ) {
   diag('Is not running under travis!');
   exit 1;
 }
-
+if ( not env_exists('STERILIZE_ENV') ) {
+  diag("\e[31STERILIZE_ENV is not set, skipping, because this is probably Travis's Default ( and unwanted ) target");
+  exit 0;
+}
+if ( env_is( 'TRAVIS_BRANCH', 'master' ) and env_is( 'TRAVIS_PERL_VERSION', '5.8' ) ) {
+  diag("\e[31script skipped on 5.8 on master, because \@Git, a dependency of \@Author::KENTNL, is unavailble on 5.8\e[0m");
+  exit 0;
+}
 if ( env_is( 'TRAVIS_BRANCH', 'master' ) ) {
   my $xtest = safe_exec_nonfatal( 'dzil', 'xtest' );
   my $test  = safe_exec_nonfatal( 'dzil', 'test' );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoosex-has-sugar-perl.git



More information about the Pkg-perl-cvs-commits mailing list