diff options
author | Julian Fleischer <tirednesscankill@warhog.net> | 2018-08-03 17:27:08 +0200 |
---|---|---|
committer | Julian Fleischer <tirednesscankill@warhog.net> | 2018-08-27 12:23:25 +0200 |
commit | 272306ea57116c0c9afc0f73161929be978fe9a8 (patch) | |
tree | b3d09178f138ea439f84c0946f3bfb7a1d6e9015 /.travis/test_03_before_install.sh | |
parent | 519e2739cf6fac98ec24888b36b011f1c6b98bbc (diff) |
number .travis/ script according to build lifecycle and add README to explain
Diffstat (limited to '.travis/test_03_before_install.sh')
-rwxr-xr-x | .travis/test_03_before_install.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.travis/test_03_before_install.sh b/.travis/test_03_before_install.sh new file mode 100755 index 0000000000..8026a96f89 --- /dev/null +++ b/.travis/test_03_before_install.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2018 The Bitcoin Core developers +# Distributed under the MIT software license, see the accompanying +# file COPYING or http://www.opensource.org/licenses/mit-license.php. + +export LC_ALL=C + +PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g") +export PATH + +BEGIN_FOLD () { + echo "" + CURRENT_FOLD_NAME=$1 + echo "travis_fold:start:${CURRENT_FOLD_NAME}" +} + +END_FOLD () { + RET=$? + echo "travis_fold:end:${CURRENT_FOLD_NAME}" + if [ $RET != 0 ]; then + echo "${CURRENT_FOLD_NAME} failed with status code ${RET}" + fi +} + |