Skip to content

Commit 5f5989d

Browse files
committed
Add code coverage.
1 parent 40e49a0 commit 5f5989d

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ sudo: false
44

55
jdk:
66
- oraclejdk8
7-
- openjdk8
7+
- openjdk8
8+
9+
after_success:
10+
- mvn clean test jacoco:report coveralls:report

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ jCasbin
22
====
33

44
[![Build Status](https://travis-ci.org/casbin/jcasbin.svg?branch=master)](https://travis-ci.org/casbin/jcasbin)
5+
[![Coverage Status](https://coveralls.io/repos/github/casbin/jcasbin/badge.svg?branch=master)](https://coveralls.io/github/casbin/jcasbin?branch=master)
56
[![Release](https://img.shields.io/github/release/casbin/jcasbin.svg)](https://github.com/casbin/jcasbin/releases/latest)
67
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/casbin/lobby)
78
[![Patreon](https://img.shields.io/badge/patreon-donate-yellow.svg)](http://www.patreon.com/yangluo)

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
<groupId>org.casbin</groupId>
88
<artifactId>jcasbin</artifactId>
99
<version>0.0.1-SNAPSHOT</version>
10+
11+
<properties>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
</properties>
14+
1015
<build>
1116
<plugins>
1217
<plugin>
@@ -17,6 +22,24 @@
1722
<target>1.8</target>
1823
</configuration>
1924
</plugin>
25+
<plugin>
26+
<groupId>org.eluder.coveralls</groupId>
27+
<artifactId>coveralls-maven-plugin</artifactId>
28+
<version>4.3.0</version>
29+
</plugin>
30+
<plugin>
31+
<groupId>org.jacoco</groupId>
32+
<artifactId>jacoco-maven-plugin</artifactId>
33+
<version>0.7.6.201602180812</version>
34+
<executions>
35+
<execution>
36+
<id>prepare-agent</id>
37+
<goals>
38+
<goal>prepare-agent</goal>
39+
</goals>
40+
</execution>
41+
</executions>
42+
</plugin>
2043
</plugins>
2144
</build>
2245

0 commit comments

Comments
 (0)