aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev/ci/ci-wrapper.sh
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2017-08-24 12:45:37 -0400
committerGravatar Jason Gross <jgross@mit.edu>2017-08-24 12:45:37 -0400
commited29da3f95056dd92b4d1059371afd7ebf05bd2c (patch)
tree4328927bd36da094497dcddec9bb1a9006d4a116 /dev/ci/ci-wrapper.sh
parent26b0fc20bba2d9d79e176620141697beb3f307a2 (diff)
Only display travis_fold: on travis
Diffstat (limited to 'dev/ci/ci-wrapper.sh')
-rwxr-xr-xdev/ci/ci-wrapper.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/dev/ci/ci-wrapper.sh b/dev/ci/ci-wrapper.sh
index 63bff6778..789dbed07 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'