Enable SonarCloud in Travis CI

This commit is contained in:
str4d
2017-12-07 14:04:48 +00:00
parent 19016edcfc
commit f9eaf412b7
2 changed files with 11 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
language: java
addons:
sonarcloud:
organization: "i2p"
jdk:
- oraclejdk9
- oraclejdk8
@@ -21,9 +25,11 @@ cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.sonar/cache/
- .gradle
script:
- ./gradlew check
- ./gradlew sonarqube
- ./gradlew codeCoverageReport
after_success:

View File

@@ -1,3 +1,7 @@
plugins {
id "org.sonarqube" version "2.6.1"
}
// Exclude apps/ dir itself, but include its subdirs
def javaProjects = subprojects - project(':apps')