aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-03-20 20:43:10 +0100
committerSonarTech <sonartech@sonarsource.com>2018-03-22 12:37:50 +0100
commitbbdb381021281680114cd70b74dcf2b0f7577cd6 (patch)
tree254cb19ef4fb6995609dbc1de1545356e246cb5c /travis.sh
parentb3cf89af7b9fede43d0b23739b28dc762eb3e2ad (diff)
downloadsonarqube-bbdb381021281680114cd70b74dcf2b0f7577cd6.tar.gz
sonarqube-bbdb381021281680114cd70b74dcf2b0f7577cd6.zip
Try travis keepalive
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/travis.sh b/travis.sh
index 6ad35c597d3..e17d7391e30 100755
--- 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