aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-03-20 21:24:33 +0100
committerSonarTech <sonartech@sonarsource.com>2018-03-22 12:37:50 +0100
commit5df7c6623c68e8f30202b2c99983d9f5267d1d87 (patch)
tree2e10f0d2b38f897b8533de9c50f82366bf29d9a4 /travis.sh
parentbbdb381021281680114cd70b74dcf2b0f7577cd6 (diff)
downloadsonarqube-5df7c6623c68e8f30202b2c99983d9f5267d1d87.tar.gz
sonarqube-5df7c6623c68e8f30202b2c99983d9f5267d1d87.zip
Avoid Travis timeout when no logs are printed during 10 minutes
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/travis.sh b/travis.sh
index e17d7391e30..aa22640cb1d 100755
--- 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 &