From: Peter Rabbitson Date: Tue, 13 Sep 2016 10:57:00 +0000 (+0200) Subject: (travis) Remove execution bits from the travis scripts X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9040c43abdc6182d84525e3d4c08765f989769a1;p=dbsrgits%2FDBIx-Class.git (travis) Remove execution bits from the travis scripts No functional changes --- diff --git a/.travis.yml b/.travis.yml index bfda0e5..719a83a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -421,12 +421,12 @@ before_script: # need to invoke the after_failure script manually # because 'after_failure' runs only after 'script' fails # - - maint/getstatus maint/travis-ci_scripts/30_before_script.bash + - maint/getstatus /bin/bash maint/travis-ci_scripts/30_before_script.bash script: # Run actual tests # - - maint/getstatus maint/travis-ci_scripts/40_script.bash + - maint/getstatus /bin/bash maint/travis-ci_scripts/40_script.bash ### ### Set -e back, work around https://github.com/travis-ci/travis-ci/issues/3533 @@ -436,14 +436,14 @@ script: after_success: # Check if we can assemble a dist properly if not in CLEANTEST # - - maint/getstatus maint/travis-ci_scripts/50_after_success.bash || ( maint/travis-ci_scripts/50_after_failure.bash && /bin/false ) + - maint/getstatus /bin/bash maint/travis-ci_scripts/50_after_success.bash || ( /bin/bash maint/travis-ci_scripts/50_after_failure.bash && /bin/false ) after_failure: # Final sysinfo printout on fail # - - maint/getstatus maint/travis-ci_scripts/50_after_failure.bash + - maint/getstatus /bin/bash maint/travis-ci_scripts/50_after_failure.bash after_script: # No tasks yet # - #- maint/getstatus maint/travis-ci_scripts/60_after_script.bash + #- maint/getstatus /bin/bash maint/travis-ci_scripts/60_after_script.bash diff --git a/maint/travis-ci_scripts/10_before_install.bash b/maint/travis-ci_scripts/10_before_install.bash old mode 100755 new mode 100644 index 547fa8b..3d5bbae --- a/maint/travis-ci_scripts/10_before_install.bash +++ b/maint/travis-ci_scripts/10_before_install.bash @@ -1,5 +1,10 @@ #!/bin/bash +if [[ "${BASH_SOURCE[0]}" == "${0}" ]] ; then + echo "This script can not be executed standalone - it can only be source()d" 1>&2 + exit 1 +fi + export SHORT_CIRCUIT_SMOKE if have_sudo ; then diff --git a/maint/travis-ci_scripts/20_install.bash b/maint/travis-ci_scripts/20_install.bash old mode 100755 new mode 100644 index ed7bc00..8da037f --- a/maint/travis-ci_scripts/20_install.bash +++ b/maint/travis-ci_scripts/20_install.bash @@ -1,5 +1,10 @@ #!/bin/bash +if [[ "${BASH_SOURCE[0]}" == "${0}" ]] ; then + echo "This script can not be executed standalone - it can only be source()d" 1>&2 + exit 1 +fi + if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi # we need a mirror that both has the standard index and a backpan version rolled diff --git a/maint/travis-ci_scripts/30_before_script.bash b/maint/travis-ci_scripts/30_before_script.bash old mode 100755 new mode 100644 diff --git a/maint/travis-ci_scripts/40_script.bash b/maint/travis-ci_scripts/40_script.bash old mode 100755 new mode 100644 diff --git a/maint/travis-ci_scripts/50_after_failure.bash b/maint/travis-ci_scripts/50_after_failure.bash old mode 100755 new mode 100644 diff --git a/maint/travis-ci_scripts/50_after_success.bash b/maint/travis-ci_scripts/50_after_success.bash old mode 100755 new mode 100644 diff --git a/maint/travis-ci_scripts/60_after_script.bash b/maint/travis-ci_scripts/60_after_script.bash old mode 100755 new mode 100644 diff --git a/maint/travis-ci_scripts/common.bash b/maint/travis-ci_scripts/common.bash old mode 100755 new mode 100644 index d2b77d8..48fb7c1 --- a/maint/travis-ci_scripts/common.bash +++ b/maint/travis-ci_scripts/common.bash @@ -1,5 +1,10 @@ #!/bin/bash +if [[ "${BASH_SOURCE[0]}" == "${0}" ]] ; then + echo "This script can not be executed standalone - it can only be source()d" 1>&2 + exit 1 +fi + # "autodie" set -e