mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 09:52:16 -05:00
Fix getting code coverage on CI builds
This commit is contained in:
parent
9c258ee60c
commit
916929e507
@ -1,6 +1,7 @@
|
|||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
apply from: '../gradle/plugins/checkstyle-android.gradle'
|
apply from: '../gradle/plugins/checkstyle-android.gradle'
|
||||||
apply from: '../gradle/plugins/findbugs-android.gradle'
|
apply from: '../gradle/plugins/findbugs-android.gradle'
|
||||||
|
apply plugin: 'jacoco'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
@ -36,6 +37,12 @@ android {
|
|||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
debug {
|
||||||
|
testCoverageEnabled rootProject.testCoverage
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
abortOnError true
|
abortOnError true
|
||||||
warningsAsErrors true
|
warningsAsErrors true
|
||||||
|
@ -2,6 +2,7 @@ apply plugin: 'android-sdk-manager'
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply from: '../gradle/plugins/checkstyle-android.gradle'
|
apply from: '../gradle/plugins/checkstyle-android.gradle'
|
||||||
apply from: '../gradle/plugins/findbugs-android.gradle'
|
apply from: '../gradle/plugins/findbugs-android.gradle'
|
||||||
|
apply plugin: 'jacoco'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
|
Loading…
Reference in New Issue
Block a user