From 87c74a1456c395d29f51f35b6e9a1f526114cef7 Mon Sep 17 00:00:00 2001 From: Claudio David Gasparini Date: Wed, 18 Nov 2020 08:38:01 +0100 Subject: Introduce jacoco-maven-plugin to enforce the minimum coverage Issue-ID: CPS-5 Signed-off-by: Claudio David Gasparini Change-Id: I7552fc65ab78e645c54af993840999e9818816b0 --- cps-parent/pom.xml | 72 ++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 54 insertions(+), 18 deletions(-) (limited to 'cps-parent') diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml index bd7e1a529..99f60951f 100644 --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -19,7 +19,9 @@ org.onap.cps.Application openjdk:11-jre-slim 11 + 0.8.6 2.6.0 + 0.15 https://nexus.onap.org https://nexus.onap.org 3.1.0 @@ -177,6 +179,26 @@ + + com.google.cloud.tools + jib-maven-plugin + ${jib-maven-plugin.version} + + + ${app} + USE_CURRENT_TIMESTAMP + + + ${base.image} + + + ${repository.name} + + ${tag.version} + + + + @@ -240,6 +262,7 @@ maven-surefire-plugin 3.0.0-M5 + @{argLine} false **/*Spec.java @@ -248,24 +271,37 @@ - com.google.cloud.tools - jib-maven-plugin - ${jib-maven-plugin.version} - - - ${app} - USE_CURRENT_TIMESTAMP - - - ${base.image} - - - ${repository.name} - - ${tag.version} - - - + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + default-prepare-agent + + prepare-agent + + + + coverage-check + + check + + + + + BUNDLE + + + INSTRUCTION + COVEREDRATIO + ${minimum-coverage} + + + + + + + -- cgit 1.2.3-korg