Skip to content

Commit 97674d9

Browse files
committed
enable code coverage reporting on Coveralls.io
Send code coverage report to Coveralls.io after a successfully on Travis CI. Add badge for code coverage on `master` branch.
1 parent 98d3cb3 commit 97674d9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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

0 commit comments

Comments
 (0)