Skip to content

Commit

Permalink
Fix coverage report file not being available to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavms committed Nov 5, 2016
1 parent 3cd09ca commit 3bf9531
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ android:
- sys-img-armeabi-v7a-android-22

script:
- ./gradlew clean createDebugAndroidTestCoverageReport coveralls
- ./gradlew connectedAndroidTest coveralls
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.6.3'
}

allprojects {
repositories {
Expand Down
9 changes: 9 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.kt3k.coveralls'

android {
compileSdkVersion 24
Expand All @@ -22,6 +23,14 @@ android {
}
}

coveralls {
jacocoReportPath = "${buildDir}/reports/coverage/debug/report.xml"
}

tasks.coveralls {
dependsOn 'connectedAndroidTest'
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
Expand Down

0 comments on commit 3bf9531

Please sign in to comment.