Skip tests when doing a release build

This commit is contained in:
Andreas Dangel 2023-03-30 16:02:58 +02:00
parent 7e5b7c9869
commit c9ef4531e9
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3

View File

@ -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[@]}"