mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-04 23:28:19 -05:00
Add coveralls support
This commit is contained in:
parent
5fbbf4ac13
commit
5526c44736
@ -1,4 +1,8 @@
|
|||||||
# We still need android to get the build tools/support libraries
|
# We still need android to get the build tools/support libraries
|
||||||
language: android
|
language: android
|
||||||
|
|
||||||
script: "bash gradlew jacocoTestReport"
|
script:
|
||||||
|
- ./gradlew test
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- ./gradlew jacocoTestReport coveralls
|
@ -1,6 +1,17 @@
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
|
apply plugin: 'com.github.kt3k.coveralls'
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:1.0.2'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def androidModule = project(':app')
|
def androidModule = project(':app')
|
||||||
def firstVariant = androidModule.android.applicationVariants.toList().first()
|
def firstVariant = androidModule.android.applicationVariants.toList().first()
|
||||||
@ -39,8 +50,6 @@ jacocoTestReport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Back to your regularly scheduled Jacoco
|
// Back to your regularly scheduled Jacoco
|
||||||
dependsOn test
|
|
||||||
|
|
||||||
reports {
|
reports {
|
||||||
xml.enabled true
|
xml.enabled true
|
||||||
csv.enabled false
|
csv.enabled false
|
||||||
|
Loading…
Reference in New Issue
Block a user