From 151a28c1e8dbbd4f67c27a8ecf3001a9938b1f2c Mon Sep 17 00:00:00 2001 From: Niels Denissen Date: Thu, 4 Oct 2018 11:05:30 +0200 Subject: [PATCH 1/3] Added code coverage using JaCoCo --- .travis.yml | 3 +++ README.md | 2 +- pom.xml | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6286720..0093561 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,8 @@ before_script: - echo "Wait for containers to be up and running" - bash waitForContainerSetup.sh +after_success: +- bash <(curl -s https://codecov.io/bash) + after_script: - docker-compose down diff --git a/README.md b/README.md index 12fa9ad..2264178 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Ranger S3 Plugin enables creation of policies in Apache Ranger for S3 buckets hosted on Ceph/RadosGW (S3 coming later). It merely allows for the creation of policies and does not set ACLs by itself. It can be used together with its sister -`scala` project [gargoyle-s3proxy](https://github.com/arempter/gargoyle-s3proxy). +`scala` project [Airlock](https://github.com/ing-bank/airlock). # Installation diff --git a/pom.xml b/pom.xml index d011680..fd85426 100644 --- a/pom.xml +++ b/pom.xml @@ -195,6 +195,25 @@ + + org.jacoco + jacoco-maven-plugin + 0.7.9 + + + + prepare-agent + + + + report + test + + report + + + + \ No newline at end of file From 13a4971f29796968861b7f37bd82c5f881674b57 Mon Sep 17 00:00:00 2001 From: Niels Denissen Date: Thu, 4 Oct 2018 11:10:52 +0200 Subject: [PATCH 2/3] Add travis status as tag in README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2264178..ee92429 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/ing-bank/apache-ranger-s3-plugin.svg?branch=master)](https://travis-ci.org/ing-bank/apache-ranger-s3-plugin) + # Apache Ranger S3 Plugin Ranger S3 Plugin enables creation of policies in Apache Ranger for S3 buckets hosted on Ceph/RadosGW (S3 coming later). From 40952167e7f8e22d13dbefd97de788227e9c4cf7 Mon Sep 17 00:00:00 2001 From: Niels Denissen Date: Thu, 4 Oct 2018 11:19:13 +0200 Subject: [PATCH 3/3] Add Coverage report to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ee92429..395ab49 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://travis-ci.org/ing-bank/apache-ranger-s3-plugin.svg?branch=master)](https://travis-ci.org/ing-bank/apache-ranger-s3-plugin) +[![codecov.io](http://codecov.io/github/ing-bank/apache-ranger-s3-plugin/coverage.svg?branch=master)](https://codecov.io/gh/ing-bank/apache-ranger-s3-plugin?branch=master) # Apache Ranger S3 Plugin