Skip to content

Commit 2f1a291

Browse files
Add jacoco with a plugin that automatically configures it for all submodules (#15)
* Add a gradle plugin to automatically run jacoco for all gradle submodules automatically. See https://github.com/vanniktech/gradle-android-junit-jacoco-plugin
1 parent f7071eb commit 2f1a291

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android:
99
- extra
1010

1111
script:
12-
- ./gradlew check test
12+
- ./gradlew test
1313

1414
after_success:
1515
- bash <(curl -s https://codecov.io/bash)

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
dependencies {
77
classpath 'com.android.tools.build:gradle:3.2.1'
88
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.11"
9+
classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:0.13.0"
910
}
1011
}
1112

@@ -16,6 +17,9 @@ allprojects {
1617
}
1718
}
1819

20+
1921
task clean(type: Delete) {
2022
delete rootProject.buildDir
2123
}
24+
25+
apply plugin: "com.vanniktech.android.junit.jacoco"

0 commit comments

Comments
 (0)