From c9ef4531e97bdc780bb72800fcf14b850d265e99 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 30 Mar 2023 16:02:58 +0200 Subject: [PATCH] Skip tests when doing a release build --- .ci/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.ci/build.sh b/.ci/build.sh index 0b503d4e18..4f8ba65901 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -60,6 +60,11 @@ function build() { PMD_MAVEN_EXTRA_OPTS+=(-Denforcer.skip=true) fi + # skip tests when doing a release build + if pmd_ci_maven_isReleaseBuild; then + PMD_MAVEN_EXTRA_OPTS+=(-DskipTests=true) + fi + if [ "$(pmd_ci_utils_get_os)" != "linux" ]; then pmd_ci_log_group_start "Build with mvnw" ./mvnw clean verify --show-version --errors --batch-mode --no-transfer-progress "${PMD_MAVEN_EXTRA_OPTS[@]}"