Skip to content

Commit

Permalink
try fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mbogner committed Jan 10, 2021
1 parent 2e50c66 commit 26a83dc
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ language: java
os: linux
dist: focal
install: true
addons:
sonarcloud:
organization: 'mbogner-github'
token:
secure: '1a9f6f4795abb559633e71ddeebe9fcc8128c0a3'
jdk:
- openjdk11
before_script:
- chmod +x gradlew
script:
- ./gradlew check
- ./gradlew jacocoTestReport
- ./gradlew sonarqube
- ./gradlew codeCoverageReport
cache:
directories:
- '$HOME/.m2/repository'
Expand Down
19 changes: 19 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
21 changes: 21 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 26a83dc

Please sign in to comment.