From e540c6ec4c1f807a655ac82510b2633a964f679f Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Sat, 30 Jan 2021 13:52:54 +0100 Subject: [PATCH] CI: optimize Maven usage --- .gitlab-ci.yml | 4 +--- pom.xml | 9 +-------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8be1416..17f3783 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,6 @@ build: script: - - mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp checkstyle:check - - mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp test - - mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp jacoco:prepare-agent test jacoco:report + - mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp checkstyle:check jacoco:prepare-agent test jacoco:report - python3 /opt/cover2cover.py target/site/jacoco/jacoco.xml src/main/java > target/site/cobertura.xml - python3 /opt/source2filename.py target/site/cobertura.xml - /opt/calcCoverage.sh < target/site/cobertura.xml diff --git a/pom.xml b/pom.xml index f8a982c..0375864 100644 --- a/pom.xml +++ b/pom.xml @@ -209,13 +209,6 @@ org.jacoco jacoco-maven-plugin 0.8.6 - - - - prepare-agent - - - @@ -353,4 +346,4 @@ - \ No newline at end of file +