[libmoosex-has-sugar-perl] 55/120: instaldeps: 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 c450538d397cd587491372af2e7210f51c2db089
Author: Kent Fredric <kentfredric at gmail.com>
Date: Wed Oct 30 07:55:54 2013 +1300
instaldeps: exit 0 early when master + 5.8 or STERILIZE_ENV unset
---
install_deps.pl | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/install_deps.pl b/install_deps.pl
index 7aa6b0b..3ac11b9 100644
--- a/install_deps.pl
+++ b/install_deps.pl
@@ -71,7 +71,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[31minstalldeps skipped on 5.8 on master, because \@Git, a dependency of \@Author::KENTNL, is unavailble on 5.8\e[0m");
+ exit 0;
+}
my (@params) = qw[ --quiet --notest --mirror http://cpan.metacpan.org/ --no-man-pages ];
if ( env_true('DEVELOPER_DEPS') ) {
push @params, '--dev';
--
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