This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree 3 files changed +17
-1
lines changed
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# Check https://circleci.com/docs/2.0/language-java/ for more details
4
4
#
5
- version : 2
5
+ version : 2.1
6
+ orbs :
7
+ codecov :
codecov/[email protected]
6
8
jobs :
7
9
build :
8
10
docker :
42
44
- run : gradle ktlintCheck
43
45
# run tests!
44
46
- run : gradle test
47
+ # upload coverages to codecov
48
+ - run : bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 1
1
[ ![ License] ( https://img.shields.io/badge/License-Apache%202.0-blue.svg )] ( https://opensource.org/licenses/Apache-2.0 )
2
2
[ ![ CircleCI] ( https://circleci.com/gh/ProjectMapK/KMapper.svg?style=svg )] ( https://circleci.com/gh/ProjectMapK/KMapper )
3
3
[ ![ ] ( https://jitci.com/gh/ProjectMapK/KMapper/svg )] ( https://jitci.com/gh/ProjectMapK/KMapper )
4
+ [ ![ codecov] ( https://codecov.io/gh/ProjectMapK/KMapper/branch/master/graph/badge.svg )] ( https://codecov.io/gh/ProjectMapK/KMapper )
4
5
5
6
KMapper
6
7
====
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ plugins {
4
4
id(" org.jetbrains.kotlin.jvm" ) version " 1.3.72"
5
5
// その他補助系
6
6
id(" org.jlleitschuh.gradle.ktlint" ) version " 9.2.1"
7
+ id(" jacoco" )
7
8
id(" com.github.ben-manes.versions" ) version " 0.28.0"
8
9
}
9
10
@@ -60,5 +61,15 @@ tasks {
60
61
}
61
62
test {
62
63
useJUnitPlatform()
64
+ // テスト終了時にjacocoのレポートを生成する
65
+ finalizedBy(jacocoTestReport)
66
+ }
67
+
68
+ jacocoTestReport {
69
+ reports {
70
+ xml.isEnabled = true
71
+ csv.isEnabled = false
72
+ html.isEnabled = true
73
+ }
63
74
}
64
75
}
You can’t perform that action at this time.
0 commit comments