From d060a88aa5b79e4962a9e99ac080343d515494cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Wed, 13 Jul 2022 10:42:50 -0700 Subject: [PATCH] Remove Travis specific folding logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/actions/build-selftests/helpers.sh | 18 +++++------------- travis-ci/vmtest/helpers.sh | 18 +++++------------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/.github/actions/build-selftests/helpers.sh b/.github/actions/build-selftests/helpers.sh index 08c307e..3b2cda0 100644 --- a/.github/actions/build-selftests/helpers.sh +++ b/.github/actions/build-selftests/helpers.sh @@ -4,23 +4,15 @@ foldable() { local YELLOW='\033[1;33m' local NOCOLOR='\033[0m' - if [ -z ${GITHUB_WORKFLOW+x} ]; then - echo travis_fold:$1:$2 + if [ $1 = "start" ]; then + line="::group::$2" if [ ! -z "${3:-}" ]; then - echo -e "${YELLOW}$3${NOCOLOR}" + line="$line - ${YELLOW}$3${NOCOLOR}" fi - echo else - if [ $1 = "start" ]; then - line="::group::$2" - if [ ! -z "${3:-}" ]; then - line="$line - ${YELLOW}$3${NOCOLOR}" - fi - else - line="::endgroup::" - fi - echo -e "$line" + line="::endgroup::" fi + echo -e "$line" } __print() { diff --git a/travis-ci/vmtest/helpers.sh b/travis-ci/vmtest/helpers.sh index 08c307e..3b2cda0 100755 --- a/travis-ci/vmtest/helpers.sh +++ b/travis-ci/vmtest/helpers.sh @@ -4,23 +4,15 @@ foldable() { local YELLOW='\033[1;33m' local NOCOLOR='\033[0m' - if [ -z ${GITHUB_WORKFLOW+x} ]; then - echo travis_fold:$1:$2 + if [ $1 = "start" ]; then + line="::group::$2" if [ ! -z "${3:-}" ]; then - echo -e "${YELLOW}$3${NOCOLOR}" + line="$line - ${YELLOW}$3${NOCOLOR}" fi - echo else - if [ $1 = "start" ]; then - line="::group::$2" - if [ ! -z "${3:-}" ]; then - line="$line - ${YELLOW}$3${NOCOLOR}" - fi - else - line="::endgroup::" - fi - echo -e "$line" + line="::endgroup::" fi + echo -e "$line" } __print() {