Skip to content

Commit

Permalink
Fix maven/simple-project verification script
Browse files Browse the repository at this point in the history
After updating maven-pmd-plugin to 3.24.0, the messages
slightly changed. No summary is printed anymore,
only each violation is given (if any).
  • Loading branch information
adangel committed Jul 26, 2024
1 parent f1f065c commit e949a8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion maven/simple-project/.ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ set -e

echo
echo "Verifying build.log..."
grep "You have 2 PMD violations" build.log || (echo -e "\n\n\x1b[31mMissing expected rule violation\e[0m"; exit 1)
failure_count=$(grep --count "PMD Failure" build.log)
if [[ $failure_count -ne 2 ]]; then
echo -e "\n\n\x1b[31mMissing expected rule violations\e[0m"
exit 1
fi

echo -e "\n\n\x1b[32mTest successful\e[0m"

0 comments on commit e949a8e

Please sign in to comment.