From ed29da3f95056dd92b4d1059371afd7ebf05bd2c Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Thu, 24 Aug 2017 12:45:37 -0400 Subject: Only display travis_fold: on travis --- dev/ci/ci-wrapper.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'dev') diff --git a/dev/ci/ci-wrapper.sh b/dev/ci/ci-wrapper.sh index 63bff6778f..789dbed07c 100755 --- a/dev/ci/ci-wrapper.sh +++ b/dev/ci/ci-wrapper.sh @@ -6,12 +6,19 @@ set -eo pipefail +function travis_fold { + if [ -n "${TRAVIS}" ]; + then + echo -n "travis_fold:$1:$2\\r" + fi +} + CI_SCRIPT="$1" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # assume this script is in dev/ci/, cd to the root Coq directory cd "${DIR}/../.." "${DIR}/${CI_SCRIPT}" 2>&1 | tee time-of-build.log -echo 'Aggregating timing log...' && echo -en 'travis_fold:start:coq.test.timing\\r' +echo 'Aggregating timing log...' && travis_fold 'start' 'coq.test.timing' python ./tools/make-one-time-file.py time-of-build.log -echo -en 'travis_fold:end:coq.test.timing\\r' +travis_fold 'end' 'coq.test.timing' -- cgit v1.2.3