This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Expand file tree Collapse file tree 4 files changed +18
-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/codecov@1.0.5
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/KRowMapper.svg?style=svg )] ( https://circleci.com/gh/ProjectMapK/KRowMapper )
3
3
[ ![ ] ( https://jitci.com/gh/ProjectMapK/KRowMapper/svg )] ( https://jitci.com/gh/ProjectMapK/KRowMapper )
4
+ [ ![ codecov] ( https://codecov.io/gh/ProjectMapK/KRowMapper/branch/master/graph/badge.svg )] ( https://codecov.io/gh/ProjectMapK/KRowMapper )
4
5
5
6
KRowMapper
6
7
====
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/KRowMapper.svg?style=svg )] ( https://circleci.com/gh/ProjectMapK/KRowMapper )
3
3
[ ![ ] ( https://jitci.com/gh/ProjectMapK/KRowMapper/svg )] ( https://jitci.com/gh/ProjectMapK/KRowMapper )
4
+ [ ![ codecov] ( https://codecov.io/gh/ProjectMapK/KRowMapper/branch/master/graph/badge.svg )] ( https://codecov.io/gh/ProjectMapK/KRowMapper )
4
5
5
6
---
6
7
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ plugins {
3
3
id(" java" )
4
4
id(" org.jetbrains.kotlin.jvm" ) version " 1.3.72"
5
5
id(" org.jlleitschuh.gradle.ktlint" ) version " 9.2.1"
6
+ id(" jacoco" )
6
7
}
7
8
8
9
group = " com.mapk"
@@ -72,5 +73,15 @@ tasks {
72
73
}
73
74
test {
74
75
useJUnitPlatform()
76
+ // テスト終了時にjacocoのレポートを生成する
77
+ finalizedBy(jacocoTestReport)
78
+ }
79
+
80
+ jacocoTestReport {
81
+ reports {
82
+ xml.isEnabled = true
83
+ csv.isEnabled = false
84
+ html.isEnabled = true
85
+ }
75
86
}
76
87
}
You can’t perform that action at this time.
0 commit comments