Skip to content

Commit c943f16

Browse files
committed
Merge pull request #50 from britter/coveralls
Fixes #45 - Configure build for coveralls.io
2 parents 9751b2f + aff53ac commit c943f16

File tree

3 files changed

+52
-6
lines changed

3 files changed

+52
-6
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ before_install:
55
- "sh -e /etc/init.d/xvfb start"
66

77
script: mvn clean install
8+
9+
after_success:
10+
- mvn jacoco:report coveralls:report

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
spring-boot-admin
22
=================
33
[![Build Status](https://travis-ci.org/codecentric/spring-boot-admin.png?branch=master)](https://travis-ci.org/codecentric/spring-boot-admin)
4+
[![Coverage Status](https://coveralls.io/repos/codecentric/spring-boot-admin/badge.svg)](https://coveralls.io/r/codecentric/spring-boot-admin)
45
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.codecentric/spring-boot-admin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.codecentric/spring-boot-admin/)
56
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/codecentric/spring-boot-admin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
67

@@ -73,22 +74,22 @@ For all configuration options see [spring-boot-starter-admin-client](https://git
7374

7475
##### Dashboard
7576

76-
[](url "title")
77+
[](url "title")
7778
<img src="https://raw.githubusercontent.com/codecentric/spring-boot-admin/master/screenshot.png">
7879

7980
##### Details
8081

81-
[](url "title")
82+
[](url "title")
8283
<img src="https://raw.githubusercontent.com/codecentric/spring-boot-admin/master/screenshot-details.png">
8384

8485
##### Logging
8586

86-
[](url "title")
87+
[](url "title")
8788
<img src="https://raw.githubusercontent.com/codecentric/spring-boot-admin/master/screenshot-logging.png">
8889

8990
##### JMX
9091

91-
[](url "title")
92+
[](url "title")
9293
<img src="https://raw.githubusercontent.com/codecentric/spring-boot-admin/master/screenshot-jmx.png">
9394

9495
#### Build
@@ -112,5 +113,3 @@ Example:
112113
```shell
113114
mvn build-helper:parse-version versions:set versions:commit -DnewVersion=1.0.0-SNAPSHOT
114115
```
115-
116-

pom.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,50 @@
140140
</plugins>
141141
</build>
142142
</profile>
143+
<profile>
144+
<id>travis</id>
145+
<activation>
146+
<property>
147+
<name>env.TRAVIS</name>
148+
<value>true</value>
149+
</property>
150+
</activation>
151+
<build>
152+
<plugins>
153+
<plugin>
154+
<groupId>org.jacoco</groupId>
155+
<artifactId>jacoco-maven-plugin</artifactId>
156+
<version>0.7.3.201502191951</version>
157+
<executions>
158+
<!-- Prepares the property pointing to the JaCoCo
159+
runtime agent which is passed as VM argument when Maven the Surefire plugin
160+
is executed. -->
161+
<execution>
162+
<id>pre-unit-test</id>
163+
<goals>
164+
<goal>prepare-agent</goal>
165+
</goals>
166+
</execution>
167+
168+
<!-- Ensures that the code coverage report for
169+
unit tests is created after unit tests have been run. -->
170+
<execution>
171+
<id>post-unit-test</id>
172+
<phase>test</phase>
173+
<goals>
174+
<goal>report</goal>
175+
</goals>
176+
</execution>
177+
</executions>
178+
</plugin>
179+
<plugin>
180+
<groupId>org.eluder.coveralls</groupId>
181+
<artifactId>coveralls-maven-plugin</artifactId>
182+
<version>3.0.1</version>
183+
</plugin>
184+
</plugins>
185+
</build>
186+
</profile>
143187
</profiles>
144188
<distributionManagement>
145189
<snapshotRepository>

0 commit comments

Comments
 (0)