Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit44fd64b

Browse files
author
karthik
committed
code clean up
1 parent74944b3 commit44fd64b

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

‎.travis.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ sudo: required
22
language:java
33
jdk:
44
-oraclejdk9
5-
65
install:echo "skip 'gradle assemble' step"
76
script:
87
-gradle clean build --stacktrace
9-
8+
-gradle check
9+
-gradle codeCoverageReport
1010
after_success:
1111
-bash <(curl -s https://codecov.io/bash)

‎README.adoc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
image:https://travis-ci.com/devxchangeio/logmetrics-java.svg?branch=master["Build Status", link="https://travis-ci.com/devxchangeio/logmetrics-java"]
2+
image:https://coveralls.io/repos/github/devxchangeio/logmetrics-java/badge.svg?branch=master["Coverage Status",link="https://coveralls.io/github/devxchangeio/logmetrics-java?branch=master"]
3+
24

35
## logmetrics
46

‎build.gradle‎

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ apply plugin: 'java'
1919
applyplugin:'eclipse'
2020
applyplugin:'maven-publish'
2121
applyplugin:'maven'
22-
23-
22+
applyplugin:'jacoco'
2423

2524
group'io.devxchange'
2625
version'0.0.2-SNAPSHOT'
@@ -37,7 +36,6 @@ repositories {
3736

3837

3938
dependencies {
40-
4139
compilegroup:'org.springframework',name:'spring-webmvc',version:'4.3.2.RELEASE'
4240
compile("javax.servlet:javax.servlet-api:3.1.0")
4341
compilegroup:'commons-io',name:'commons-io',version:'2.4'
@@ -61,6 +59,25 @@ task sourcesJar(type: Jar) {
6159
from sourceSets.main.allSource
6260
}
6361

62+
taskcodeCoverageReport(type:JacocoReport) {
63+
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
64+
65+
subprojects.each {
66+
sourceSets it.sourceSets.main
67+
}
68+
69+
reports {
70+
xml.enabledtrue
71+
xml.destination"${buildDir}/reports/jacoco/report.xml"
72+
html.enabledfalse
73+
csv.enabledfalse
74+
}
75+
}
76+
77+
codeCoverageReport.dependsOn {
78+
subprojects*.test
79+
}
80+
6481
artifacts {
6582
archives javadocJar, sourcesJar
6683
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp