From 24a4fb33515d4bf1d3a23e2bcbc425632933f15d Mon Sep 17 00:00:00 2001 From: Chen Zhang <340355960@qq.com> Date: Fri, 27 Aug 2021 09:34:55 +0800 Subject: [PATCH] Improve MAVEN build Performance --- .travis.yml | 2 +- pom.xml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d8ea21dbccd..ca169bcbf3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ before_script: script: - "PGPASSWORD=\"test\" ./packaging/dbscripts/schema.sh -d engine_dao_tests -u engine_test -s localhost -p 5433 -c apply" - rm -rvf /home/travis/.m2/repository/ - - for i in `seq 1 120`; do sleep 60; echo 'keep alive'; done & mvn --quiet clean org.jacoco:jacoco-maven-plugin:prepare-agent install -P enable-dao-tests sonar:sonar -Dsonar.organization=default -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dengine.db.username=engine_test -Dengine.db.password=test -Dengine.db.url=jdbc:postgresql://localhost:5433/engine_dao_tests + - for i in `seq 1 120`; do sleep 60; echo 'keep alive'; done & mvn -T 1C --quiet clean org.jacoco:jacoco-maven-plugin:prepare-agent install -P enable-dao-tests sonar:sonar -Dsonar.organization=default -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dengine.db.username=engine_test -Dengine.db.password=test -Dengine.db.url=jdbc:postgresql://localhost:5433/engine_dao_tests env: global: - secure: kgBwT3IHk1vg1PHD4KKqkIOFlv4MGkOA+IK+nsTbPRJEvWpzZSgpHLuL+/2YuB4tntNMMj3LHwPTSJmaGLRdxaSjjv0MfzQA/fudLqTJ+FL3MuA++YcLSfjj6wj1dlMRj+0vYgCQcBMKTktDhGMdE6gUh42AQBzywqe1IcnX5Qs= diff --git a/pom.xml b/pom.xml index 244da8117af..98aa38e19f0 100644 --- a/pom.xml +++ b/pom.xml @@ -619,6 +619,9 @@ ${ovirt.surefire.reportsDirectory} --illegal-access=permit + classes + true + @@ -844,6 +847,11 @@ maven-surefire-plugin + + classes + true + + @@ -856,6 +864,9 @@ maven-surefire-plugin true + classes + true +