aboutsummaryrefslogtreecommitdiff
path: root/all
diff options
context:
space:
mode:
authorEric Anderson <ejona@google.com>2015-08-07 18:02:31 -0700
committerEric Anderson <ejona@google.com>2015-08-11 11:26:21 -0700
commit522580dd0ebe108991362450bd440e9003295dfa (patch)
tree239a0a68d521faf124e04a1fd4df103dcb7f87e5 /all
parentf681b5f8beef3f36508edc61cdc79cb0399b348d (diff)
downloadgrpc-grpc-java-522580dd0ebe108991362450bd440e9003295dfa.tar.gz
Add coveralls support
Diffstat (limited to 'all')
-rw-r--r--all/build.gradle23
1 files changed, 23 insertions, 0 deletions
diff --git a/all/build.gradle b/all/build.gradle
index 289e18d6b..f955e2643 100644
--- a/all/build.gradle
+++ b/all/build.gradle
@@ -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
@@ -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)
+}