From 26a83dc4f9c1477b789c279d690922b22e32108a Mon Sep 17 00:00:00 2001 From: Manuel Bogner Date: Sun, 10 Jan 2021 22:56:00 +0100 Subject: [PATCH] try fix build --- .travis.yml | 7 +------ build.gradle | 19 +++++++++++++++++++ sonar-project.properties | 21 +++++++++++++++++++++ 3 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 sonar-project.properties diff --git a/.travis.yml b/.travis.yml index 6c17772..ad354be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,6 @@ language: java os: linux dist: focal install: true -addons: - sonarcloud: - organization: 'mbogner-github' - token: - secure: '1a9f6f4795abb559633e71ddeebe9fcc8128c0a3' jdk: - openjdk11 before_script: @@ -14,7 +9,7 @@ before_script: script: - ./gradlew check - ./gradlew jacocoTestReport - - ./gradlew sonarqube + - ./gradlew codeCoverageReport cache: directories: - '$HOME/.m2/repository' diff --git a/build.gradle b/build.gradle index 923155d..a6f2147 100644 --- a/build.gradle +++ b/build.gradle @@ -41,3 +41,22 @@ wrapper { gradleVersion = "6.7.1" distributionType = Wrapper.DistributionType.ALL } + +task codeCoverageReport(type: JacocoReport) { + executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec") + + subprojects.each { + sourceSets it.sourceSets.main + } + + reports { + xml.enabled true + xml.destination file("${buildDir}/reports/jacoco/report.xml") + html.enabled false + csv.enabled false + } +} + +codeCoverageReport.dependsOn { + subprojects*.test +} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..bc44532 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,21 @@ +sonar.projectKey=at.coffeebeans.stdrand +sonar.projectName=stdrand +sonar.projectVersion=1.0.1-SNAPSHOT + +# ===================================================== +# Meta-data for the project +# ===================================================== + +sonar.links.homepage=https://github.com/mbogner/bigrand +sonar.links.ci=https://travis-ci.org/github/mbogner/bigrand +sonar.links.scm=https://github.com/mbogner/bigrand +sonar.links.issue=https://github.com/mbogner/bigrand/issues + + +# ===================================================== +# Properties that will be shared amongst all modules +# ===================================================== + +# SQ standard properties +sonar.sources=src/main +sonar.tests=src/test