diff options
author | Tom <thomas.verin@sonarsource.com> | 2018-10-11 14:54:30 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-10-11 15:14:34 +0200 |
commit | e581d9bf12be654518a355e2a6cc4e360a4f231e (patch) | |
tree | fb855736d7f8932679712940136e718e57e57ca9 /travis.sh | |
parent | 4352216293428ee2b3e3d492ec355f0c7f69aa75 (diff) | |
download | sonarqube-e581d9bf12be654518a355e2a6cc4e360a4f231e.tar.gz sonarqube-e581d9bf12be654518a355e2a6cc4e360a4f231e.zip |
Enable SonarCloud analysis for sonarqube public repos
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/travis.sh b/travis.sh index 1857280985b..f693ccb43a0 100755 --- a/travis.sh +++ b/travis.sh @@ -37,7 +37,7 @@ installJdk8() { # configureTravis() { mkdir -p ~/.local - curl -sSL https://github.com/SonarSource/travis-utils/tarball/v47 | tar zx --strip-components 1 -C ~/.local + curl -sSL https://github.com/SonarSource/travis-utils/tarball/v50 | tar zx --strip-components 1 -C ~/.local source ~/.local/bin/install } configureTravis @@ -65,7 +65,12 @@ case "$TARGET" in BUILD) installJdk8 - ./gradlew build --no-daemon --console plain + ./gradlew build sonarqube --no-daemon --console plain \ + -PjacocoEnabled=true \ + -Dsonar.projectKey=org.sonarsource.sonarqube:sonarqube \ + -Dsonar.organization=sonarsource \ + -Dsonar.host.url=https://sonarcloud.io \ + -Dsonar.login=$SONAR_TOKEN ;; WEB_TESTS) |