Skip to content

Commit bdda651

Browse files
authored
Merge pull request #70 from agebhar1/feature/JaCoCo
enable code coverage reporting on Coveralls.io
2 parents f4bba48 + 97674d9 commit bdda651

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ language: java
22
jdk:
33
- oraclejdk8
44
script: mvn verify
5+
after_success:
6+
- mvn -f core/pom.xml jacoco:report coveralls:report
57
install: true
68
sudo: false
79
cache:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# JSON Schema Validator
22

3-
[![Apache 2.0 License][ASL 2.0 badge]][ASL 2.0] [![Build Status][Travis badge master]][Travis]
3+
[![Apache 2.0 License][ASL 2.0 badge]][ASL 2.0] [![Build Status][Travis badge master]][Travis] [![Coverage Status][Coveralls.io badge master]][Coveralls.io]
44

55
* [When to use this library?](#when-to-use-this-library)
66
* [Maven installation](#maven-installation)
@@ -233,6 +233,8 @@ SchemaLoader schemaLoader = SchemaLoader.builder()
233233
[ASL 2.0]: https://www.apache.org/licenses/LICENSE-2.0
234234
[Travis badge master]: https://travis-ci.org/everit-org/json-schema.svg?branch=master
235235
[Travis]: https://travis-ci.org/everit-org/json-schema
236+
[Coveralls.io badge master]: https://coveralls.io/repos/github/everit-org/json-schema/badge.svg?branch=master
237+
[Coveralls.io]: https://coveralls.io/github/everit-org/json-schema?branch=master
236238
[daveclayton/json-schema-validator]: https://github.com/daveclayton/json-schema-validator
237239
[draft-zyp-json-schema-04]: https://tools.ietf.org/html/draft-zyp-json-schema-04
238240
[draft-fge-json-schema-validation-00 format]: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-7

core/pom.xml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
<version>1.4.1</version>
2525
<packaging>bundle</packaging>
2626
<properties>
27+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
28+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2729
<projectpath>json-schema</projectpath>
2830
<maven.compiler.source>1.8</maven.compiler.source>
2931
<maven.compiler.target>1.8</maven.compiler.target>
32+
<jacoco.version>0.7.8</jacoco.version>
3033
</properties>
3134
<name>everit-org/json-schema</name>
3235
<url>https://github.com/everit-org/json-schema</url>
@@ -71,6 +74,35 @@
7174
</instructions>
7275
</configuration>
7376
</plugin>
77+
<plugin>
78+
<groupId>org.jacoco</groupId>
79+
<artifactId>jacoco-maven-plugin</artifactId>
80+
<version>${jacoco.version}</version>
81+
<executions>
82+
<execution>
83+
<id>default-prepare-agent</id>
84+
<goals>
85+
<goal>prepare-agent</goal>
86+
</goals>
87+
<configuration>
88+
<propertyName>surefireArgLine</propertyName>
89+
</configuration>
90+
</execution>
91+
</executions>
92+
</plugin>
93+
<plugin>
94+
<artifactId>maven-surefire-plugin</artifactId>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<version>2.19.1</version>
97+
<configuration>
98+
<argLine>${surefireArgLine}</argLine>
99+
</configuration>
100+
</plugin>
101+
<plugin>
102+
<groupId>org.eluder.coveralls</groupId>
103+
<artifactId>coveralls-maven-plugin</artifactId>
104+
<version>4.3.0</version>
105+
</plugin>
74106
</plugins>
75107
</build>
76108
<dependencies>
@@ -104,7 +136,7 @@
104136
<dependency>
105137
<groupId>nl.jqno.equalsverifier</groupId>
106138
<artifactId>equalsverifier</artifactId>
107-
<version>2.1.6</version>
139+
<version>2.1.8</version>
108140
<scope>test</scope>
109141
</dependency>
110142
</dependencies>

0 commit comments

Comments
 (0)