Skip to content

Commit e49c398

Browse files
authored
Add coveralls reporting (#5)
Enable coveralls-based reporting. Resolves #4
1 parent 960c71c commit e49c398

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ matrix:
2727
- env: JDK_RELEASE='JDK 10 Early-Access'
2828

2929
after_success:
30-
- ./gradlew jacocoRootReport sonarqube
30+
- ./gradlew jacocoRootReport coveralls sonarqube

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A scalable platform for building [linked data](https://www.w3.org/TR/ldp/) appli
44

55
[![Build Status](https://travis-ci.org/trellis-ldp/trellis.png?branch=master)](https://travis-ci.org/trellis-ldp/trellis)
66
[![Build status](https://ci.appveyor.com/api/projects/status/nvdwx442663ib39d?svg=true)](https://ci.appveyor.com/project/acoburn/trellis)
7-
[![Coverage Status](https://sonarcloud.io/api/badges/measure?key=org.trellisldp%3Atrellis&metric=coverage)](https://sonarcloud.io/dashboard?id=org.trellisldp%3Atrellis)
7+
[![Coverage Status](https://coveralls.io/repos/github/trellis-ldp/trellis/badge.svg?branch=master)](https://coveralls.io/github/trellis-ldp/trellis?branch=master)
88

99
## Mailing list
1010

build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'com.github.hierynomus.license' version '0.14.0'
33
id 'com.github.ben-manes.versions' version '0.17.0'
44
id 'net.researchgate.release' version '2.6.0'
5+
id 'com.github.kt3k.coveralls' version '2.8.2'
56
id 'org.sonarqube' version '2.6.1'
67
}
78

@@ -280,6 +281,7 @@ sonarqube {
280281
}
281282
}
282283

284+
283285
task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
284286
dependsOn = subprojects.test
285287
additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs)
@@ -293,5 +295,13 @@ task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
293295
}
294296
}
295297

296-
check.dependsOn processBuildTools
298+
coveralls {
299+
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
300+
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/jacocoRootReport.xml"
301+
}
297302

303+
tasks.coveralls {
304+
dependsOn 'jacocoRootReport'
305+
}
306+
307+
check.dependsOn processBuildTools

0 commit comments

Comments
 (0)