From 2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 11 Jan 2017 10:10:21 +0100 Subject: [PATCH] BUILD: display the date every minute in travis builds --- clock.sh | 14 ++++++++++++++ travis.sh | 5 +++++ 2 files changed, 19 insertions(+) create mode 100755 clock.sh diff --git a/clock.sh b/clock.sh new file mode 100755 index 00000000000..91c2c5868b3 --- /dev/null +++ b/clock.sh @@ -0,0 +1,14 @@ +#!/bin/bash +RED='\033[0;31m' +NC='\033[0m' # No Color + +echo "start the clock" +while [ ! -f stop ]; do + #echo "File not found!" + seconds=60; date1=$((`date +%s` + $seconds)); + while [ "$date1" -ge `date +%s` ]; do + #echo -ne "$(date -u --date @$(($date1 - `date +%s` )) +%H:%M:%S)\r"; > /dev/null + : #busy wait + done + printf "${RED}############# `date` ############${NC}\n" +done \ No newline at end of file diff --git a/travis.sh b/travis.sh index ac764993ee6..0b9e852dcf8 100755 --- a/travis.sh +++ b/travis.sh @@ -24,6 +24,8 @@ function configureTravis { configureTravis . installJDK8 +./clock.sh & + case "$TARGET" in CI) @@ -103,3 +105,6 @@ WEB) ;; esac + +#stop the clock +touch stop \ No newline at end of file -- 2.39.5