Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 094d258

Browse files
authored
Merge pull request #31 from k163377/add_readme
Add README and coveradge.
2 parents 7b2b812 + 576eb34 commit 094d258

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#
33
# Check https://circleci.com/docs/2.0/language-java/ for more details
44
#
5-
version: 2
5+
version: 2.1
6+
orbs:
7+
codecov: codecov/[email protected]
68
jobs:
79
build:
810
docker:
@@ -42,3 +44,5 @@ jobs:
4244
- run: gradle ktlintCheck
4345
# run tests!
4446
- run: gradle test
47+
# upload coverages to codecov
48+
- run: bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
2+
[![CircleCI](https://circleci.com/gh/ProjectMapK/Shared.svg?style=svg)](https://circleci.com/gh/ProjectMapK/Shared)
3+
[![](https://jitci.com/gh/ProjectMapK/Shared/svg)](https://jitci.com/gh/ProjectMapK/Shared)
4+
[![codecov](https://codecov.io/gh/ProjectMapK/Shared/branch/master/graph/badge.svg)](https://codecov.io/gh/ProjectMapK/Shared)
5+
6+
A `Shared` module for ProjectMapK.
7+
====
8+
You can use this module to easily make function calls by `Kotlin`'s `Reflection`.
9+
Also, you can use the features of ProjectMapK in this module.

build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id("java")
44
id("org.jetbrains.kotlin.jvm") version "1.3.72"
55
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
6+
id("jacoco")
67
}
78

89
group = "com.mapk"
@@ -57,5 +58,15 @@ tasks {
5758
}
5859
test {
5960
useJUnitPlatform()
61+
// テスト終了時にjacocoのレポートを生成する
62+
finalizedBy(jacocoTestReport)
63+
}
64+
65+
jacocoTestReport {
66+
reports {
67+
xml.isEnabled = true
68+
csv.isEnabled = false
69+
html.isEnabled = true
70+
}
6071
}
6172
}

0 commit comments

Comments
 (0)