Skip to content

Commit

Permalink
Enabled code coverage using Cobertura and Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefizso committed Feb 10, 2015
1 parent 6a98fc4 commit 6a488fa
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ jdk:
- oraclejdk7
- openjdk7

scripts:
- mvn test

after_success:
- mvn clean cobertura:cobertura coveralls:report

cache:
directories:
- $HOME/.m2

env:
global:
secure: eJBZ7mtTDAGk0UoLHVFqyGl2Wx9zmxzNUiS9eHtEh+twJ2IZdwpIx4hqeIPlPD0D+R5DGdFRFvj2h4YkB/dTgKJ4w8axOxqpVrSTeasekLrBuxtiOkqT/L0OiywSIptiNg5qUglTDvkwONtW2UwfZAP6/gSsI4Y+RLiCUTgf4Y8=
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# fogbugz-notifier-plugin for Jenkins

[![Travis](https://img.shields.io/travis/jozefizso/jenkins-fogbugz-notifier-plugin.svg)](https://travis-ci.org/jozefizso/jenkins-fogbugz-notifier-plugin)
[![Coverage Status](https://coveralls.io/repos/jozefizso/jenkins-fogbugz-notifier-plugin/badge.svg?branch=master)](https://coveralls.io/r/jozefizso/jenkins-fogbugz-notifier-plugin?branch=master)

A Jenkins plugin to integrate Fogbugz and Jenkins.
Supports the following operations:
Expand Down
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,25 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<repoToken>${env.COVERALLS_TOKEN}</repoToken>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<format>xml</format>
<maxmem>256m</maxmem>
<!-- aggregated reports for multi-module projects -->
<aggregate>true</aggregate>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 6a488fa

Please sign in to comment.