File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ branches:
1919# Build and perform release (if needed)
2020script :
2121 - ./gradlew build -s && ./gradlew ciPerformRelease
22+
23+ after_success :
24+ - bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ buildscript {
1515
1616apply plugin : ' kotlin'
1717apply plugin : ' org.jetbrains.dokka'
18+ apply plugin : " jacoco"
1819
1920description = ' Generate GraphQL Schema (GraphQL DSL or SDL) based on introspection query result'
2021
@@ -46,6 +47,9 @@ tasks.withType(Test) {
4647 testLogging {
4748 events(" passed" , " skipped" , " failed" )
4849 }
50+ jacoco {
51+ destinationFile = file(" ${ buildDir} /jacoco/test.exec" )
52+ }
4953}
5054
5155task ktlint (type : JavaExec , group : " verification" ) {
@@ -66,3 +70,17 @@ dokka {
6670 }
6771}
6872javadoc. dependsOn dokka
73+
74+ jacoco {
75+ toolVersion = " 0.8.1"
76+ }
77+
78+ jacocoTestReport {
79+ reports {
80+ xml. enabled true
81+ csv. enabled false
82+ html. destination file(" ${ buildDir} /jacocoHtml" )
83+ }
84+ }
85+
86+ build. dependsOn jacocoTestReport
You can’t perform that action at this time.
0 commit comments