Skip to content

Commit

Permalink
Activate coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Dec 17, 2015
1 parent 56c904a commit d41627b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
@@ -1,2 +1,5 @@
language: java
script: mvn clean install

after_success:
- mvn clean test jacoco:report coveralls:report
1 change: 1 addition & 0 deletions README.md
@@ -1,6 +1,7 @@
Enterprise-ready production-ready batch applications powered by Spring Boot
=============================
[![Build Status](https://travis-ci.org/codecentric/spring-boot-starter-batch-web.png?branch=master)](https://travis-ci.org/codecentric/spring-boot-starter-batch-web)
[![Coverage Status](https://coveralls.io/repos/codecentric/spring-boot-starter-batch-web/badge.svg?branch=master&service=github)](https://coveralls.io/github/codecentric/spring-boot-starter-batch-web?branch=master)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.codecentric/spring-boot-starter-batch-web/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.codecentric/spring-boot-starter-batch-web/)
[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)

Expand Down
48 changes: 46 additions & 2 deletions pom.xml
Expand Up @@ -172,9 +172,9 @@
<version>${asciidoctor.maven.plugin.version}</version>
<configuration>
<sourceDirectory>src/docs/asciidoc</sourceDirectory>
<attributes>
<attributes>
<sourcedir>${project.build.sourceDirectory}</sourcedir>
<testsourcedir>${project.build.testSourceDirectory}</testsourcedir>
<testsourcedir>${project.build.testSourceDirectory}</testsourcedir>
<projectversion>${project.version}</projectversion>
</attributes>
</configuration>
Expand Down Expand Up @@ -226,5 +226,49 @@
</plugins>
</build>
</profile>
<profile>
<id>travis</id>
<activation>
<property>
<name>env.TRAVIS</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<executions>
<!-- Prepares the property pointing to the JaCoCo
runtime agent which is passed as VM argument when Maven the Surefire plugin
is executed. -->
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>

<!-- Ensures that the code coverage report for
unit tests is created after unit tests have been run. -->
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.1.0</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit d41627b

Please sign in to comment.