]> source.dussan.org Git - sonarqube.git/commitdiff
Avoid Travis timeout when no logs are printed during 10 minutes
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 20 Mar 2018 20:24:33 +0000 (21:24 +0100)
committerSonarTech <sonartech@sonarsource.com>
Thu, 22 Mar 2018 11:37:50 +0000 (12:37 +0100)
travis.sh

index e17d7391e30491d534503956dc6125a6985751fb..aa22640cb1db7ca34ea907e0551a25fbb73828d0 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -39,10 +39,15 @@ function configureTravis {
 }
 configureTravis
 
+#
+# Travis fails on timeout when build does not print logs
+# during 10 minutes. This function aims to bypass this
+# behavior when building the slow sonar-server sub-project.
+#
 function keep_alive() {
   while true; do
-    echo -en "foo"
-    sleep 5
+    echo -en "\a"
+    sleep 60
   done
 }
 keep_alive &