Skip to content

Commit

Permalink
Fixed coveralls (include all modules). *10
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Mar 18, 2018
1 parent 161eff7 commit 9d16fe5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
8 changes: 5 additions & 3 deletions build.gradle
Expand Up @@ -88,7 +88,7 @@ allprojects {
subprojects { subProject ->
def exclude = ['eu/darken/R*.class', '**/BuildConfig.class', '**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*']
apply plugin: 'jacoco'
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) {
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {
reports {
xml.enabled = true
html.enabled = true
Expand All @@ -103,6 +103,9 @@ subprojects { subProject ->
"jacoco/testDebugUnitTest.exec",
"outputs/code-coverage/connected/*coverage.ec"
])

rootProject.coveralls.sourceDirs.addAll(sourceDirectories.flatten())
println "println2" + rootProject.coveralls.sourceDirs
}

afterEvaluate {
Expand Down Expand Up @@ -142,13 +145,12 @@ task jacocoRootReport(type: JacocoReport, group: 'Coverage reports') {

}
coveralls {
sourceDirs = publishedProjects.sourceSets.main.allSource.srcDirs.flatten()
println "coveralls-sourcedir-final" + sourceDirs
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/jacocoRootReport.xml"
}

tasks.coveralls {
group = 'Coverage reports'
description = 'Uploads the aggregated coverage report to Coveralls'
println "println2" + publishedProjects.sourceSets.main.allSource
dependsOn jacocoRootReport
}
1 change: 0 additions & 1 deletion core/build.gradle
Expand Up @@ -24,7 +24,6 @@ android {
buildTypes {
release {}
debug {
testCoverageEnabled true
}
}
}
Expand Down
1 change: 0 additions & 1 deletion example/build.gradle
Expand Up @@ -23,7 +23,6 @@ android {

buildTypes {
debug {
testCoverageEnabled true
}
release {
minifyEnabled false
Expand Down
1 change: 0 additions & 1 deletion root/build.gradle
Expand Up @@ -24,7 +24,6 @@ android {
buildTypes {
release {}
debug {
testCoverageEnabled true
}
}
}
Expand Down

0 comments on commit 9d16fe5

Please sign in to comment.