diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-05-30 16:10:05 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-06-12 20:21:01 +0200 |
commit | 7e59b1e27f80a5d466913a3b9040ee82d1ae2e52 (patch) | |
tree | 08b5777d40923468cefe2fc455bd3f4233ea267b /travis.sh | |
parent | 77f771b0411d1d5bc92b757bad1bcbc18921e6b4 (diff) | |
download | sonarqube-7e59b1e27f80a5d466913a3b9040ee82d1ae2e52.tar.gz sonarqube-7e59b1e27f80a5d466913a3b9040ee82d1ae2e52.zip |
[scripts] declare bash function in portable fashion
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/travis.sh b/travis.sh index a9542844056..85748c6cae1 100755 --- a/travis.sh +++ b/travis.sh @@ -9,7 +9,7 @@ set -euo pipefail # JDK is kept in cache. It does not need to be downloaded from Oracle # at each build. # -function installJdk8 { +installJdk8() { echo "Setup JDK 1.8u171" mkdir -p ~/jvm pushd ~/jvm > /dev/null @@ -26,7 +26,7 @@ function installJdk8 { # # Configure Maven settings and install some script utilities # -function configureTravis { +configureTravis() { mkdir -p ~/.local curl -sSL https://github.com/SonarSource/travis-utils/tarball/v47 | tar zx --strip-components 1 -C ~/.local source ~/.local/bin/install @@ -35,10 +35,10 @@ configureTravis # # Travis fails on timeout when build does not print logs -# during 10 minutes. This function aims to bypass this +# during 10 minutes. This aims to bypass this # behavior when building the slow sonar-server sub-project. # -function keep_alive() { +keep_alive() { while true; do echo -en "\a" sleep 60 |