]> source.dussan.org Git - sonarqube.git/commitdiff
Try travis keepalive
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 20 Mar 2018 19:43:10 +0000 (20:43 +0100)
committerSonarTech <sonartech@sonarsource.com>
Thu, 22 Mar 2018 11:37:50 +0000 (12:37 +0100)
travis-clock.sh [deleted file]
travis.sh

diff --git a/travis-clock.sh b/travis-clock.sh
deleted file mode 100755 (executable)
index 0561765..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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
index 6ad35c597d3d724b973ec16fcd72cbfde0f39ffd..e17d7391e30491d534503956dc6125a6985751fb 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -39,6 +39,14 @@ function configureTravis {
 }
 configureTravis
 
+function keep_alive() {
+  while true; do
+    echo -en "foo"
+    sleep 5
+  done
+}
+keep_alive &
+
 # When a pull request is open on the branch, then the job related
 # to the branch does not need to be executed and should be canceled.
 # It does not book slaves for nothing.
@@ -58,10 +66,6 @@ else
   export PULL_REQUEST_NUMBER=$TRAVIS_PULL_REQUEST
 fi
 
-# Hack to keep job alive even if no logs during more than 10 minutes.
-# That can occur when uploading sonarqube.zip to Artifactory.
-./travis-clock.sh &
-
 case "$TARGET" in
 
 BUILD)
@@ -150,5 +154,3 @@ WEB_TESTS)
 
 esac
 
-#stop the clock
-touch stop