Skip to content

Commit

Permalink
Add coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Aug 11, 2015
1 parent f681b5f commit 522580d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ before_install:
before_script:
- test -z "$(git status --porcelain)" || (git status && echo Error Working directory is not clean. Forget to commit generated files? && false)

after_success:
- ./gradlew :grpc-all:coveralls

jdk:
- oraclejdk8

Expand Down
23 changes: 23 additions & 0 deletions all/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
apply plugin: 'com.github.kt3k.coveralls'

description = "gRPC: All"

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
}
}

// Make sure that no transitive dependencies are included.
configurations.compile.transitive = false

Expand Down Expand Up @@ -55,8 +66,20 @@ task jacocoMerge(type: JacocoMerge) {

jacocoTestReport {
dependsOn(jacocoMerge)
reports {
xml.enabled = true
html.enabled = true
}

additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs)
sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
classDirectories = files(subprojects.sourceSets.main.output)
}

coveralls {
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
}

tasks.coveralls {
dependsOn(jacocoTestReport)
}

0 comments on commit 522580d

Please sign in to comment.