aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom <thomas.verin@sonarsource.com>2017-01-11 10:10:21 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-01-12 16:20:38 +0100
commit2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba (patch)
tree227787bf91937f85161ac8e78d96a949baf7de65
parent1dcd206d10922b8aa889b094adc2aec06cc050d9 (diff)
downloadsonarqube-2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba.tar.gz
sonarqube-2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba.zip
BUILD: display the date every minute in travis builds
-rwxr-xr-xclock.sh14
-rwxr-xr-xtravis.sh5
2 files changed, 19 insertions, 0 deletions
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