Skip to content

Commit 522580d

Browse files
committed
Add coveralls support
1 parent f681b5f commit 522580d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ before_install:
1717
before_script:
1818
- test -z "$(git status --porcelain)" || (git status && echo Error Working directory is not clean. Forget to commit generated files? && false)
1919

20+
after_success:
21+
- ./gradlew :grpc-all:coveralls
22+
2023
jdk:
2124
- oraclejdk8
2225

all/build.gradle

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1+
apply plugin: 'com.github.kt3k.coveralls'
2+
13
description = "gRPC: All"
24

5+
buildscript {
6+
repositories {
7+
mavenCentral()
8+
}
9+
dependencies {
10+
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
11+
}
12+
}
13+
314
// Make sure that no transitive dependencies are included.
415
configurations.compile.transitive = false
516

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

5667
jacocoTestReport {
5768
dependsOn(jacocoMerge)
69+
reports {
70+
xml.enabled = true
71+
html.enabled = true
72+
}
5873

5974
additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs)
6075
sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
6176
classDirectories = files(subprojects.sourceSets.main.output)
6277
}
78+
79+
coveralls {
80+
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
81+
}
82+
83+
tasks.coveralls {
84+
dependsOn(jacocoTestReport)
85+
}

0 commit comments

Comments
 (0)