From 79be205b5f4183452c7b6c2860071b23d03a62f7 Mon Sep 17 00:00:00 2001 From: Sergei Malafeev Date: Sun, 10 Jun 2018 09:34:24 +0300 Subject: [PATCH] add test coverage Signed-off-by: Sergei Malafeev --- .travis.yml | 3 +++ README.md | 4 +++- pom.xml | 27 ++++++++++++++++++++++++--- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2efec5c..1e0cf6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,9 @@ branches: except: - /^[0-9]/ +after_success: + - mvn jacoco:report coveralls:report + env: global: # Ex. travis encrypt BINTRAY_USER=your_github_account diff --git a/README.md b/README.md index f831a6d..c77e9c7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status][ci-img]][ci] [![Released Version][maven-img]][maven] +[![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Released Version][maven-img]][maven] # OpenTracing Elasticsearch Client Instrumentation OpenTracing instrumentation for Elasticsearch clients. @@ -36,5 +36,7 @@ TransportClient transportClient = new TracingPreBuiltTransportClient(settings) [ci-img]: https://travis-ci.org/opentracing-contrib/java-elasticsearch-client.svg?branch=master [ci]: https://travis-ci.org/opentracing-contrib/java-elasticsearch-client +[cov-img]: https://coveralls.io/repos/github/opentracing-contrib/java-elasticsearch-client/badge.svg?branch=master +[cov]: https://coveralls.io/github/opentracing-contrib/java-elasticsearch-client?branch=master [maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-elasticsearch-client.svg [maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-elasticsearch-client diff --git a/pom.xml b/pom.xml index 28bf5c5..145030f 100644 --- a/pom.xml +++ b/pom.xml @@ -62,6 +62,8 @@ UTF-8 0.31.0 + 4.3.0 + 0.8.1 @@ -74,20 +76,20 @@ org.elasticsearch.client transport - 6.1.1 + 6.2.4 org.apache.logging.log4j log4j-api - 2.8.2 + 2.11.0 test org.apache.logging.log4j log4j-core - 2.8.2 + 2.11.0 test @@ -159,6 +161,7 @@ mvnw mvnw.cmd .mvn/wrapper/maven-wrapper.properties + .coveralls.yml @@ -170,6 +173,24 @@ + + org.eluder.coveralls + coveralls-maven-plugin + ${coveralls-maven-plugin.version} + + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + prepare-agent + + prepare-agent + + + +