Skip to content

Commit 2da9f29

Browse files
committed
Merge pull request #245 from garethf/issues/194
Adding support for coveralls coverage reporting
2 parents b65a3e9 + 9fa4a5b commit 2da9f29

2 files changed

Lines changed: 72 additions & 30 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ jdk:
44
- openjdk6
55
- openjdk7
66

7+
after-success:
8+
- mvn clean cobertura:cobertura coveralls:report

pom.xml

Lines changed: 70 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
43
<modelVersion>4.0.0</modelVersion>
54
<groupId>org.buddycloud</groupId>
65
<artifactId>channelserver</artifactId>
76
<packaging>jar</packaging>
87
<version>0.18.0-SNAPSHOT</version>
98
<name>Buddycloud Java Server</name>
9+
1010
<scm>
11+
<connection>scm:git:git@github.buddycloud/buddycloud-server-java.git</connection>
12+
<developerConnection>scm:git:git@github.com:buddycloud/buddycloud-server-java.git</developerConnection>
1113
<url>https://github.com/buddycloud/buddycloud-server-java</url>
1214
</scm>
1315

16+
<issueManagement>
17+
<system>GitHub Issues</system>
18+
<url>https://github.com/buddycloud/buddycloud-server-java/issues</url>
19+
</issueManagement>
20+
<ciManagement>
21+
<system>travis</system>
22+
<url>https://travis-ci.org/buddycloud/buddycloud-server-java</url>
23+
</ciManagement>
24+
25+
1426
<properties>
1527
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1628
<project.build.withDependencies>jar-with-dependencies</project.build.withDependencies>
@@ -169,14 +181,11 @@
169181
<phase>test</phase>
170182
<configuration>
171183
<tasks unless="maven.test.skip">
172-
<junitreport
173-
todir="target/surefire-reports">
174-
<fileset
175-
dir="target/surefire-reports">
184+
<junitreport todir="target/surefire-reports">
185+
<fileset dir="target/surefire-reports">
176186
<include name="**/*.xml" />
177187
</fileset>
178-
<report format="noframes"
179-
todir="target/surefire-reports" />
188+
<report format="noframes" todir="target/surefire-reports" />
180189
</junitreport>
181190
</tasks>
182191
</configuration>
@@ -222,28 +231,27 @@
222231
<target>1.6</target>
223232
</configuration>
224233
</plugin>
225-
<plugin>
226-
<groupId>org.apache.maven.plugins</groupId>
227-
<artifactId>maven-shade-plugin</artifactId>
228-
<version>2.3</version>
229-
<configuration>
230-
<outputFile>${project.build.directory}/${project.build.finalName}-${project.build.withDependencies}.jar</outputFile>
231-
<transformers>
232-
<transformer
233-
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
234-
<mainClass>org.buddycloud.channelserver.Main</mainClass>
235-
</transformer>
236-
</transformers>
237-
</configuration>
238-
<executions>
239-
<execution>
240-
<phase>package</phase>
241-
<goals>
242-
<goal>shade</goal>
243-
</goals>
244-
</execution>
245-
</executions>
246-
</plugin>
234+
<plugin>
235+
<groupId>org.apache.maven.plugins</groupId>
236+
<artifactId>maven-shade-plugin</artifactId>
237+
<version>2.3</version>
238+
<configuration>
239+
<outputFile>${project.build.directory}/${project.build.finalName}-${project.build.withDependencies}.jar</outputFile>
240+
<transformers>
241+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
242+
<mainClass>org.buddycloud.channelserver.Main</mainClass>
243+
</transformer>
244+
</transformers>
245+
</configuration>
246+
<executions>
247+
<execution>
248+
<phase>package</phase>
249+
<goals>
250+
<goal>shade</goal>
251+
</goals>
252+
</execution>
253+
</executions>
254+
</plugin>
247255
<plugin>
248256
<groupId>org.apache.maven.plugins</groupId>
249257
<artifactId>maven-checkstyle-plugin</artifactId>
@@ -267,8 +275,40 @@
267275
</execution>
268276
</executions>
269277
</plugin>
278+
<plugin>
279+
<groupId>org.codehaus.mojo</groupId>
280+
<artifactId>cobertura-maven-plugin</artifactId>
281+
<version>2.6</version>
282+
</plugin>
283+
<plugin>
284+
<groupId>org.eluder.coveralls</groupId>
285+
<artifactId>coveralls-maven-plugin</artifactId>
286+
<version>2.2.0</version>
287+
<configuration>
288+
<format>xml</format>
289+
<maxmem>256m</maxmem>
290+
<aggregate>true</aggregate>
291+
<sourceEncoding>UTF-8</sourceEncoding>
292+
</configuration>
293+
</plugin>
270294
</plugins>
271295
</pluginManagement>
272296
</build>
273297

298+
<reporting>
299+
<plugins>
300+
<plugin>
301+
<groupId>org.codehaus.mojo</groupId>
302+
<artifactId>cobertura-maven-plugin</artifactId>
303+
<version>2.6</version>
304+
<configuration>
305+
<formats>
306+
<format>html</format>
307+
<format>xml</format>
308+
</formats>
309+
</configuration>
310+
</plugin>
311+
</plugins>
312+
</reporting>
313+
274314
</project>

0 commit comments

Comments
 (0)