forked from phoedos/pmd
Don't disable enforcer plugin
This commit is contained in:
@ -55,12 +55,9 @@ function build() {
|
|||||||
# stop early for invalid maven version and branch/tag combination
|
# stop early for invalid maven version and branch/tag combination
|
||||||
pmd_ci_maven_verify_version || exit 0
|
pmd_ci_maven_verify_version || exit 0
|
||||||
|
|
||||||
# allow snapshot dependencies in release candidate builds:
|
# skip tests when doing a release build - this makes the process faster
|
||||||
if [[ "${PMD_CI_MAVEN_PROJECT_VERSION}" == *-rc* ]]; then
|
# it's a manual task now to verify that a release is only started, when the main branch
|
||||||
PMD_MAVEN_EXTRA_OPTS+=(-Denforcer.skip=true)
|
# was green before. This is usually checked via a local build, see ./do-release.sh
|
||||||
fi
|
|
||||||
|
|
||||||
# skip tests when doing a release build
|
|
||||||
if pmd_ci_maven_isReleaseBuild; then
|
if pmd_ci_maven_isReleaseBuild; then
|
||||||
PMD_MAVEN_EXTRA_OPTS+=(-DskipTests=true)
|
PMD_MAVEN_EXTRA_OPTS+=(-DskipTests=true)
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user