mirror of https://github.com/grpc/grpc-java.git
Add coveralls support
This commit is contained in:
parent
f681b5f8be
commit
522580dd0e
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue