From: Peter Rabbitson Date: Sun, 28 Sep 2014 10:08:49 +0000 (+0200) Subject: (travis) Consolidate where/how we load the common functions (the multiple X-Git-Tag: v0.082801~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2b32a0200f177727ed4d28d6bdc70d269226b85f;p=dbsrgits%2FDBIx-Class.git (travis) Consolidate where/how we load the common functions (the multiple sourcing of the same file is silly) --- diff --git a/.travis.yml b/.travis.yml index fc26570..047a582 100644 --- a/.travis.yml +++ b/.travis.yml @@ -223,6 +223,9 @@ matrix: # console output before_install: + # common functions for all run phases below + - source maint/travis-ci_scripts/common.bash + # Sets global envvars, downloads/configures debs based on CLEANTEST # Sets extra DBICTEST_* envvars # diff --git a/maint/travis-ci_scripts/20_install.bash b/maint/travis-ci_scripts/20_install.bash index 53636e4..39ec479 100755 --- a/maint/travis-ci_scripts/20_install.bash +++ b/maint/travis-ci_scripts/20_install.bash @@ -1,6 +1,5 @@ #!/bin/bash -source maint/travis-ci_scripts/common.bash if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi CPAN_MIRROR=$(echo "$PERL_CPANM_OPT" | grep -oP -- '--mirror\s+\S+' | head -n 1 | cut -d ' ' -f 2) diff --git a/maint/travis-ci_scripts/30_before_script.bash b/maint/travis-ci_scripts/30_before_script.bash index 7d8807f..c9a483a 100755 --- a/maint/travis-ci_scripts/30_before_script.bash +++ b/maint/travis-ci_scripts/30_before_script.bash @@ -1,6 +1,5 @@ #!/bin/bash -source maint/travis-ci_scripts/common.bash if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi # poison the environment diff --git a/maint/travis-ci_scripts/40_script.bash b/maint/travis-ci_scripts/40_script.bash index 8cb9048..cda7779 100755 --- a/maint/travis-ci_scripts/40_script.bash +++ b/maint/travis-ci_scripts/40_script.bash @@ -1,6 +1,5 @@ #!/bin/bash -source maint/travis-ci_scripts/common.bash if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi run_harness_tests() { diff --git a/maint/travis-ci_scripts/50_after_failure.bash b/maint/travis-ci_scripts/50_after_failure.bash index 4935763..abfd2b9 100755 --- a/maint/travis-ci_scripts/50_after_failure.bash +++ b/maint/travis-ci_scripts/50_after_failure.bash @@ -3,7 +3,6 @@ # !!! Nothing here will be executed !!! # The source-line calling this script is commented out in .travis.yml -source maint/travis-ci_scripts/common.bash if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi echo_err "Nothing to do" diff --git a/maint/travis-ci_scripts/50_after_success.bash b/maint/travis-ci_scripts/50_after_success.bash index c8d2bac..fc94fce 100755 --- a/maint/travis-ci_scripts/50_after_success.bash +++ b/maint/travis-ci_scripts/50_after_success.bash @@ -1,6 +1,5 @@ #!/bin/bash -source maint/travis-ci_scripts/common.bash if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi if [[ "$CLEANTEST" != "true" ]] ; then diff --git a/maint/travis-ci_scripts/60_after_script.bash b/maint/travis-ci_scripts/60_after_script.bash index 4935763..abfd2b9 100755 --- a/maint/travis-ci_scripts/60_after_script.bash +++ b/maint/travis-ci_scripts/60_after_script.bash @@ -3,7 +3,6 @@ # !!! Nothing here will be executed !!! # The source-line calling this script is commented out in .travis.yml -source maint/travis-ci_scripts/common.bash if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi echo_err "Nothing to do"