summaryrefslogtreecommitdiff
path: root/scripts/travis_helper.sh
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-10-16 05:50:10 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-10-16 05:50:10 -0700
commit3d6304e8c3d9433199ae1b928fcf935ce1a43bb8 (patch)
treece61c147c6f3aba182df12676eb55a2e3d12d6bb /scripts/travis_helper.sh
parente211ee620d2cd64840019d682f61800e26dba7d4 (diff)
downloadqtlocation-mapboxgl-3d6304e8c3d9433199ae1b928fcf935ce1a43bb8.tar.gz
remove spaces from fold command and put in separate file
Diffstat (limited to 'scripts/travis_helper.sh')
-rwxr-xr-xscripts/travis_helper.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/travis_helper.sh b/scripts/travis_helper.sh
new file mode 100755
index 0000000000..0a2aab663d
--- /dev/null
+++ b/scripts/travis_helper.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+function mapbox_time {
+ local NAME=$1 ; shift
+ travis_fold start "${NAME}"
+ travis_time_start
+ "$@"
+ travis_time_finish
+ travis_fold end "${NAME}"
+}