Skip to content

Commit 33ab72e

Browse files
committed
Add codecov.io test coverage reporting
1 parent 82fed71 commit 33ab72e

File tree

3 files changed

+1461
-0
lines changed

3 files changed

+1461
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ before_cache:
99
cache:
1010
directories:
1111
- $HOME/.gradle/
12+
13+
test:
14+
post:
15+
- ./gradlew jacocoTestReport && ./codecov.sh

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ apply plugin: 'kotlin'
3737
apply plugin: 'java'
3838
apply plugin: 'org.jetbrains.dokka'
3939
apply plugin: 'maven-publish'
40+
apply plugin: 'jacoco'
4041

4142
assert name == 'kotlin-argparser'
4243
description = 'Concise, easy, powerful and robust command line argument parsing for Kotlin'
@@ -217,3 +218,14 @@ publishing {
217218

218219
// This causes './gradlew release' to also upload release package to bintray.
219220
afterReleaseBuild.dependsOn bintrayUpload
221+
222+
//////////////////////////////////////////////////////////////////////////////
223+
// jacoco (codecov.io) plugin config
224+
//////////////////////////////////////////////////////////////////////////////
225+
226+
jacocoTestReport {
227+
reports {
228+
xml.enabled true
229+
html.enabled false
230+
}
231+
}

0 commit comments

Comments
 (0)