ditch jacoco
This commit is contained in:
parent
864fbc95ea
commit
8d0e7af11b
|
@ -1,5 +1,4 @@
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'jacoco'
|
|
||||||
apply plugin: 'com.squareup.sqldelight'
|
apply plugin: 'com.squareup.sqldelight'
|
||||||
// apply plugin: 'com.github.kt3k.coveralls'
|
// apply plugin: 'com.github.kt3k.coveralls'
|
||||||
|
|
||||||
|
@ -288,34 +287,6 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task jacocoTestReport(type:JacocoReport, dependsOn: "testFdroidDebugWithTestCoverageUnitTest") {
|
|
||||||
group = "Reporting"
|
|
||||||
description = "Generate Jacoco coverage reports"
|
|
||||||
|
|
||||||
classDirectories = fileTree(
|
|
||||||
dir: "${buildDir}/intermediates/classes/fdroid/debugWithTestCoverage",
|
|
||||||
excludes: ['**/R.class',
|
|
||||||
'**/R$*.class',
|
|
||||||
'**/*$ViewInjector*.*',
|
|
||||||
'**/BuildConfig.*',
|
|
||||||
'**/Manifest*.*',
|
|
||||||
'**/*Activity*.*',
|
|
||||||
'**/*Fragment*.*']
|
|
||||||
)
|
|
||||||
|
|
||||||
sourceDirectories = files("${buildDir.parent}/src/main/java")
|
|
||||||
additionalSourceDirs = files([
|
|
||||||
"${buildDir}/generated/source/buildConfig/fdroid/debugWithTestCoverage",
|
|
||||||
"${buildDir}/generated/source/r/fdroid/debugWithTestCoverage"
|
|
||||||
])
|
|
||||||
executionData = fileTree(dir: "${buildDir}/jacoco", include: "**/*.exec")
|
|
||||||
|
|
||||||
reports {
|
|
||||||
xml.enabled true
|
|
||||||
html.enabled true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fix for: No report file available: [/home/travis/build/open-keychain/open-keychain/OpenKeychain/build/reports/cobertura/coverage.xml, /home/travis/build/open-keychain/open-keychain/OpenKeychain/build/reports/jacoco/test/jacocoTestReport.xml]
|
// Fix for: No report file available: [/home/travis/build/open-keychain/open-keychain/OpenKeychain/build/reports/cobertura/coverage.xml, /home/travis/build/open-keychain/open-keychain/OpenKeychain/build/reports/jacoco/test/jacocoTestReport.xml]
|
||||||
// coveralls {
|
// coveralls {
|
||||||
// jacocoReportPath 'build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml'
|
// jacocoReportPath 'build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml'
|
||||||
|
|
Loading…
Reference in New Issue