Skip to content

Commit f75d3cc

Browse files
committed
[feature] add coverall plugin
1 parent 411ece5 commit f75d3cc

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ before_script:
88
- chmod +x gradlew
99

1010
script:
11-
- ./gradlew clean build --info
11+
- ./gradlew clean build --info
12+
13+
after_success:
14+
- ./gradlew jacocoTestReport coveralls

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/liuwill-projects/SpringBootKotlin.svg)](https://travis-ci.org/liuwill-projects/SpringBootKotlin)
1+
[![Build Status](https://travis-ci.org/liuwill-projects/SpringBootKotlin.svg)](https://travis-ci.org/liuwill-projects/SpringBootKotlin) [![Coverage Status](https://coveralls.io/repos/github/liuwill-projects/SpringBootKotlin/badge.svg)](https://coveralls.io/github/liuwill-projects/SpringBootKotlin)
22

33
# Spring Boot Kotlin
44

build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ buildscript {
1414
classpath("org.freemarker:freemarker:$freemarker_version")
1515
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1616
classpath("org.springframework.boot:spring-boot-gradle-plugin:$spting_boot_version")
17+
18+
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.1'
1719
}
1820
}
1921

@@ -31,6 +33,8 @@ apply plugin: "jacoco"
3133
apply plugin: 'docker'
3234
apply plugin: 'org.springframework.boot'
3335

36+
apply plugin: 'com.github.kt3k.coveralls'
37+
3438
sourceCompatibility = 1.8
3539
targetCompatibility = 1.8
3640

@@ -179,8 +183,9 @@ jacoco{
179183

180184
jacocoTestReport {
181185
reports{
182-
xml.enabled = false
186+
xml.enabled = true
187+
html.enabled = true
183188
csv.enabled = false
184-
html.destination = "${buildDir}/jacocoHtml"
189+
// html.destination = "${buildDir}/jacocoHtml"
185190
}
186191
}

src/main/resources/config/front.properties

Whitespace-only changes.

0 commit comments

Comments
 (0)