Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Commit

Permalink
[#10] Coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
nurkiewicz committed Oct 18, 2014
1 parent c36173c commit 44666fd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 coveralls:report
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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.

Expand Down
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,24 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.2.201409121644</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 44666fd

Please sign in to comment.