File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
src/main/resources/config Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,7 @@ before_script:
88 - chmod +x gradlew
99
1010script :
11- - ./gradlew clean build --info
11+ - ./gradlew clean build --info
12+
13+ after_success :
14+ - ./gradlew jacocoTestReport coveralls
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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"
3133apply plugin : ' docker'
3234apply plugin : ' org.springframework.boot'
3335
36+ apply plugin : ' com.github.kt3k.coveralls'
37+
3438sourceCompatibility = 1.8
3539targetCompatibility = 1.8
3640
@@ -179,8 +183,9 @@ jacoco{
179183
180184jacocoTestReport {
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}
You can’t perform that action at this time.
0 commit comments