From 32e06f634cef58db6dc77e432f9f9c3aae4f640b Mon Sep 17 00:00:00 2001 From: astefanutti Date: Tue, 26 Aug 2014 17:26:14 +0200 Subject: [PATCH] Configure JaCoCo and add badges --- .travis.yml | 21 +++++++++++++++++++++ README.md | 9 +++++++++ pom.xml | 44 +++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..33a43f9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: java + +install: + - mvn clean install -Dmaven.test.skip.exec + +script: + - mvn test -Pjacoco + +jdk: + - oraclejdk7 + - openjdk7 + - oraclejdk8 + +notifications: + email: + recipients: + - antonin.stefanutti@gmail.com + +after_success: + - mvn jacoco:report + - mvn -N coveralls:jacoco diff --git a/README.md b/README.md index b883b3b..0cf3a22 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,14 @@ # CDI extension for Camel +[![Build Status][Travis badge]][Travis build] [![Coverage Status][Coveralls badge]][Coveralls build] [![Dependency Status][VersionEye badge]][VersionEye build] + +[Travis badge]: https://travis-ci.org/astefanutti/camel-cdi.svg +[Travis build]: https://travis-ci.org/astefanutti/camel-cdi +[Coveralls badge]: https://img.shields.io/coveralls/astefanutti/camel-cdi.svg +[Coveralls build]: https://coveralls.io/r/astefanutti/camel-cdi +[VersionEye badge]: https://www.versioneye.com/user/projects/53fca400e09da310ea0006c4/badge.svg +[VersionEye build]: https://www.versioneye.com/user/projects/53fca400e09da310ea0006c4 + [CDI][] portable extension for Apache [Camel][] compliant with [JSR 346: Contexts and Dependency Injection for JavaTM EE 1.2][JSR 346 1.2]. [CDI]: http://www.cdi-spec.org/ diff --git a/pom.xml b/pom.xml index 97776c5..68b6aa2 100755 --- a/pom.xml +++ b/pom.xml @@ -66,6 +66,44 @@ 2.0.0-alpha-6 + + + jacoco + + + + org.jacoco + jacoco-maven-plugin + + + prepare-agent + + prepare-agent + + + jacoco.agent.arg + ${project.build.directory}/jacoco.exec + true + + io.astefanutti.camel.cdi.* + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + ${jacoco.agent.arg} + + + + + + + clean package @@ -100,10 +138,10 @@ coveralls-maven-plugin 2.2.0 - ${project.basedir}/impl/target/site/jacoco/jacoco.xml - ${project.basedir}/impl/target/coveralls.json + ${project.build.directory}/site/jacoco/jacoco.xml + ${project.build.directory}/coveralls.json - ${project.basedir}/impl/src/main/java + ${project.basedir}/src/main/java