From: Peter Rabbitson Date: Sun, 24 Apr 2016 11:36:47 +0000 (+0200) Subject: (travis) Make more helper functions available to subexecs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a107d8dee2d3efea39f6fe83ff76747f31464621;p=dbsrgits%2FDBIx-Class-Historic.git (travis) Make more helper functions available to subexecs --- diff --git a/maint/travis-ci_scripts/common.bash b/maint/travis-ci_scripts/common.bash index 7bbcfab..3f7c976 100755 --- a/maint/travis-ci_scripts/common.bash +++ b/maint/travis-ci_scripts/common.bash @@ -15,6 +15,14 @@ fi tstamp() { echo -n "[$(date '+%H:%M:%S')]" ; } +CPAN_is_sane() { perl -MCPAN\ 1.94_56 -e 1 &>/dev/null ; } + +CPAN_supports_BUILDPL() { perl -MCPAN\ 1.9205 -e1 &>/dev/null; } + +have_sudo() { sudo /bin/true &>/dev/null ; } + +is_cperl() { [[ "$BREWVER" =~ $( echo -n "^cperl-" ) ]] ; } + ci_vm_state_text() { echo " ========================== CI System information ============================ @@ -167,7 +175,7 @@ parallel_installdeps_notest() { " } -export -f parallel_installdeps_notest run_or_err echo_err tstamp +export -f parallel_installdeps_notest run_or_err echo_err tstamp is_cperl have_sudo CPAN_is_sane CPAN_supports_BUILDPL installdeps() { if [[ -z "$@" ]] ; then return; fi @@ -325,12 +333,3 @@ purge_sitelib() { fi } - - -CPAN_is_sane() { perl -MCPAN\ 1.94_56 -e 1 &>/dev/null ; } - -CPAN_supports_BUILDPL() { perl -MCPAN\ 1.9205 -e1 &>/dev/null; } - -have_sudo() { sudo /bin/true &>/dev/null ; } - -is_cperl() { [[ "$BREWVER" =~ $( echo -n "^cperl-" ) ]] ; }