diff --git a/.travis.yml b/.travis.yml index 9b1d421..1944756 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,5 @@ before_script: - mysql spring_data_jdbc_repository_test < src/test/resources/schema_mysql.sql - psql -c 'create database spring_data_jdbc_repository_test;' -U postgres - psql spring_data_jdbc_repository_test < src/test/resources/schema_postgresql.sql +after_success: + - mvn clean test jacoco:report \ No newline at end of file diff --git a/README.md b/README.md index 3563b1a..0ab9270 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Spring Data JDBC generic DAO implementation +[![Build Status](https://travis-ci.org/nurkiewicz/spring-data-jdbc-repository.svg?branch=master)](https://travis-ci.org/nurkiewicz/spring-data-jdbc-repository) [![Coverage Status](https://coveralls.io/repos/nurkiewicz/spring-data-jdbc-repository/badge.png)](https://coveralls.io/r/nurkiewicz/spring-data-jdbc-repository) + The purpose of this project is to provide generic, lightweight and easy to use DAO implementation for relational databases based on [`JdbcTemplate`](http://static.springsource.org/spring/docs/3.0.x/api/org/springframework/jdbc/core/JdbcTemplate.html) from [Spring framework](http://www.springsource.org/spring-framework), compatible with Spring Data umbrella of projects. ## Design objectives @@ -160,6 +162,8 @@ public class MinimalConfig { } ``` +You can also use this project without Spring context (see: [`StandaloneUsageTest.java`](https://github.com/nurkiewicz/spring-data-jdbc-repository/blob/master/src/test/java/com/nurkiewicz/jdbcrepository/StandaloneUsageTest.java) + ### Entity with auto-generated key Say you have a following database table with auto-generated key (MySQL syntax): @@ -436,7 +440,7 @@ Spring Data JDBC repository library is not providing any caching abstraction or ### Testing -This library is continuously tested using Travis ([![Build Status](https://secure.travis-ci.org/nurkiewicz/spring-data-jdbc-repository.png?branch=master)](https://travis-ci.org/nurkiewicz/spring-data-jdbc-repository)). Test suite consists of 60+ distinct tests each run against 8 different databases: MySQL, PostgreSQL, H2, HSQLDB and Derby + MS SQL Server and Oracle tests not run as part of CI. +This library is continuously tested using Travis [![Build Status](https://travis-ci.org/nurkiewicz/spring-data-jdbc-repository.svg?branch=master)](https://travis-ci.org/nurkiewicz/spring-data-jdbc-repository). Test suite consists of 60+ distinct tests each run against 8 different databases: MySQL, PostgreSQL, H2, HSQLDB and Derby + MS SQL Server and Oracle tests not run as part of CI. When filling [bug reports](https://github.com/nurkiewicz/spring-data-jdbc-repository/issues) or submitting new features please try including supporting test cases. Each [pull request](https://github.com/nurkiewicz/spring-data-jdbc-repository/pulls) is automatically tested on a separate branch. diff --git a/pom.xml b/pom.xml index aebaab0..e591af8 100644 --- a/pom.xml +++ b/pom.xml @@ -127,6 +127,24 @@ + + org.eluder.coveralls + coveralls-maven-plugin + 3.0.1 + + + org.jacoco + jacoco-maven-plugin + 0.7.2.201409121644 + + + prepare-agent + + prepare-agent + + + +