Browse Source

BUILD: display the date every minute in travis builds

tags/6.3-RC1
Tom 7 years ago
parent
commit
2ea17a6389
2 changed files with 19 additions and 0 deletions
  1. 14
    0
      clock.sh
  2. 5
    0
      travis.sh

+ 14
- 0
clock.sh View File

@@ -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

+ 5
- 0
travis.sh View File

@@ -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

Loading…
Cancel
Save