File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -28,4 +28,4 @@ android:
2828 - sys-img-armeabi-v7a-android-22
2929
3030script :
31- - ./gradlew clean createDebugAndroidTestCoverageReport coveralls
31+ - ./gradlew connectedAndroidTest coveralls
Original file line number Diff line number Diff line change @@ -6,15 +6,12 @@ buildscript {
66 }
77 dependencies {
88 classpath ' com.android.tools.build:gradle:2.2.2'
9+ classpath ' org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3'
910
1011 // NOTE: Do not place your application dependencies here; they belong
1112 // in the individual module build.gradle files
1213 }
1314}
14- plugins {
15- id ' jacoco'
16- id ' com.github.kt3k.coveralls' version ' 2.6.3'
17- }
1815
1916allprojects {
2017 repositories {
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
2+ apply plugin : ' com.github.kt3k.coveralls'
23
34android {
45 compileSdkVersion 24
@@ -22,6 +23,14 @@ android {
2223 }
2324}
2425
26+ coveralls {
27+ jacocoReportPath = " ${ buildDir} /reports/coverage/debug/report.xml"
28+ }
29+
30+ tasks. coveralls {
31+ dependsOn ' connectedAndroidTest'
32+ }
33+
2534dependencies {
2635 compile fileTree(dir : ' libs' , include : [' *.jar' ])
2736 androidTestCompile(' com.android.support.test.espresso:espresso-core:2.2.2' , {
You can’t perform that action at this time.
0 commit comments