Remove Travis specific folding logic

The foldable function from the CI helper infrastructure conceptually
support emitting both GitHub and Travis fold markers. However, given
that we no longer run anything on Travis, let's remove its special case,
as it's effectively dead code.

Signed-off-by: Daniel Müller <deso@posteo.net>
This commit is contained in:
Daniel Müller
2022-07-13 10:42:50 -07:00
committed by Andrii Nakryiko
parent 9340d9b650
commit d060a88aa5
2 changed files with 10 additions and 26 deletions

View File

@@ -4,23 +4,15 @@
foldable() { foldable() {
local YELLOW='\033[1;33m' local YELLOW='\033[1;33m'
local NOCOLOR='\033[0m' local NOCOLOR='\033[0m'
if [ -z ${GITHUB_WORKFLOW+x} ]; then if [ $1 = "start" ]; then
echo travis_fold:$1:$2 line="::group::$2"
if [ ! -z "${3:-}" ]; then if [ ! -z "${3:-}" ]; then
echo -e "${YELLOW}$3${NOCOLOR}" line="$line - ${YELLOW}$3${NOCOLOR}"
fi fi
echo
else else
if [ $1 = "start" ]; then line="::endgroup::"
line="::group::$2"
if [ ! -z "${3:-}" ]; then
line="$line - ${YELLOW}$3${NOCOLOR}"
fi
else
line="::endgroup::"
fi
echo -e "$line"
fi fi
echo -e "$line"
} }
__print() { __print() {

View File

@@ -4,23 +4,15 @@
foldable() { foldable() {
local YELLOW='\033[1;33m' local YELLOW='\033[1;33m'
local NOCOLOR='\033[0m' local NOCOLOR='\033[0m'
if [ -z ${GITHUB_WORKFLOW+x} ]; then if [ $1 = "start" ]; then
echo travis_fold:$1:$2 line="::group::$2"
if [ ! -z "${3:-}" ]; then if [ ! -z "${3:-}" ]; then
echo -e "${YELLOW}$3${NOCOLOR}" line="$line - ${YELLOW}$3${NOCOLOR}"
fi fi
echo
else else
if [ $1 = "start" ]; then line="::endgroup::"
line="::group::$2"
if [ ! -z "${3:-}" ]; then
line="$line - ${YELLOW}$3${NOCOLOR}"
fi
else
line="::endgroup::"
fi
echo -e "$line"
fi fi
echo -e "$line"
} }
__print() { __print() {