Skip to content

Commit 0731fe0

Browse files
committed
Merge pull request #10 from danielyinanc/coveralls
Coveralls
2 parents 83585bf + 3aee6bf commit 0731fe0

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ before_install:
1414

1515
script:
1616
- ./gradlew test integrationTest
17+
18+
after_success:
19+
- ./gradlew jacocoTestReport coveralls

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# RemRem Produce
22

33
[![Build Status](https://travis-ci.org/Ericsson/eiffel-remrem-produce.svg?branch=master)](https://travis-ci.org/Ericsson/eiffel-remrem-produce)
4+
[![Coverage Status](https://coveralls.io/repos/github/Ericsson/eiffel-remrem-produce/badge.svg?branch=master)](https://coveralls.io/github/Ericsson/eiffel-remrem-produce?branch=master)
45
[![](https://jitpack.io/v/Ericsson/eiffel-remrem-produce.svg)](https://jitpack.io/#Ericsson/eiffel-remrem-produce)
56

67

build.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ plugins {
1313
id 'idea'
1414
id 'war'
1515
id 'maven'
16+
id 'jacoco'
17+
id 'com.github.kt3k.coveralls' version '2.6.3'
1618
}
1719

1820
war {
@@ -22,6 +24,14 @@ war {
2224

2325
apply plugin: 'spring-boot'
2426

27+
jacocoTestReport {
28+
reports {
29+
xml.enabled = true // coveralls plugin depends on xml format report
30+
html.enabled = true
31+
html.destination "${buildDir}/jacocoHtml"
32+
}
33+
}
34+
2535
configurations {
2636
providedRuntime
2737
provided
@@ -73,7 +83,9 @@ task integrationTest(type: Test) {
7383
dependencies {
7484
// The production code uses the SLF4J logging API at compile time
7585
compile 'org.slf4j:slf4j-api:1.7.18'
76-
compile "org.springframework.boot:spring-boot-starter-web:$sprintBootVersion"
86+
compile("org.springframework.boot:spring-boot-starter-web:$sprintBootVersion") {
87+
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
88+
}
7789
compile "org.springframework.boot:spring-boot-starter-actuator:$sprintBootVersion"
7890
compile 'com.rabbitmq:amqp-client:3.5.7'
7991
compile 'com.google.code.gson:gson:2.6.2'

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Wed May 18 16:02:46 CDT 2016
1+
#Thu May 19 09:47:27 EDT 2016
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)