test: Add expanders when running in travis

Hopefully this makes things more readable.
This commit is contained in:
James Shubin
2019-02-14 20:15:19 -05:00
parent ee56155ec4
commit b0e1f12c22
2 changed files with 15 additions and 0 deletions

View File

@@ -28,3 +28,16 @@ function run-test()
{
"$@" || failures=$( [ -n "$failures" ] && echo "$failures\\n$@" || echo "$@" )
}
# travis expander helpers from:
# https://github.com/travis-ci/travis-rubies/blob/build/build.sh
fold_start() {
if env | grep -q -e '^TRAVIS=true$'; then
echo -e "travis_fold:start:$1\033[33;1m$2\033[0m"
fi
}
fold_end() {
if env | grep -q -e '^TRAVIS=true$'; then
echo -e "\ntravis_fold:end:$1\r"
fi
}