Skip to content

Commit 3e1aaa9

Browse files
committed
check-build-and-verify.sh: add checking of pom.xml.
No functional changes.
1 parent 5a50dcf commit 3e1aaa9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/scripts/ci/check-build-and-verify.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ fi
1010
CS_FAIL=
1111
PMD_FAIL=
1212
LICENSE_FAIL=
13+
POM_FAIL=
1314
BOOTLINT_FAIL=
1415
JASMINE_FAIL=
1516
HTML_FAIL=
@@ -20,6 +21,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
2021
mvn --batch-mode checkstyle:check -Dcheckstyle.violationSeverity=warning >cs.log 2>&1 || CS_FAIL=yes
2122
mvn --batch-mode pmd:check >pmd.log 2>&1 || PMD_FAIL=yes
2223
mvn --batch-mode license:check >license.log 2>&1 || LICENSE_FAIL=yes
24+
mvn --batch-mode sortpom:verify -Dsort.verifyFail=stop >pom.log || POM_FAIL=yes
2325
find src -type f -name '*.html' | xargs bootlint >bootlint.log 2>&1 || BOOTLINT_FAIL=yes
2426
mvn --batch-mode jasmine:test >jasmine.log 2>&1 || JASMINE_FAIL=yes
2527
# FIXME: add check for src/main/config/nginx/503.*html
@@ -45,6 +47,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
4547
print_status "$CS_FAIL" 'Run CheckStyle'
4648
print_status "$PMD_FAIL" 'Run PMD'
4749
print_status "$LICENSE_FAIL" 'Check license headers'
50+
print_status "$POM_FAIL" 'Check sorting of pom.xml'
4851
print_status "$BOOTLINT_FAIL" 'Run bootlint'
4952
print_status "$JASMINE_FAIL" 'Run JavaScript unit tests'
5053
print_status "$HTML_FAIL" 'Run html5validator'
@@ -59,6 +62,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
5962
print_log cs.log 'Run CheckStyle'
6063
print_log pmd.log 'Run PMD'
6164
print_log license.log 'Check license headers'
65+
print_log pom.log 'Check sorting of pom.xml'
6266
print_log bootlint.log 'Run bootlint'
6367
print_log jasmine.log 'Run JavaScript unit tests'
6468
print_log validator.log 'Run html5validator'
@@ -69,6 +73,6 @@ print_log verify.log 'Run integration tests'
6973

7074
rm -f cs.log pmd.log license.log bootlint.log jasmine.log validator.log test.log verify.log
7175

72-
if [ -n "$CS_FAIL$PMD_FAIL$LICENSE_FAIL$BOOTLINT_FAIL$JASMINE_FAIL$HTML_FAIL$TEST_FAIL$VERIFY_FAIL" ]; then
76+
if [ -n "$CS_FAIL$PMD_FAIL$LICENSE_FAIL$POM_FAIL$BOOTLINT_FAIL$JASMINE_FAIL$HTML_FAIL$TEST_FAIL$VERIFY_FAIL" ]; then
7377
exit 1
7478
fi

0 commit comments

Comments
 (0)