10
10
CS_FAIL=
11
11
PMD_FAIL=
12
12
LICENSE_FAIL=
13
+ POM_FAIL=
13
14
BOOTLINT_FAIL=
14
15
JASMINE_FAIL=
15
16
HTML_FAIL=
@@ -20,6 +21,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
20
21
mvn --batch-mode checkstyle:check -Dcheckstyle.violationSeverity=warning > cs.log 2>&1 || CS_FAIL=yes
21
22
mvn --batch-mode pmd:check > pmd.log 2>&1 || PMD_FAIL=yes
22
23
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
23
25
find src -type f -name ' *.html' | xargs bootlint > bootlint.log 2>&1 || BOOTLINT_FAIL=yes
24
26
mvn --batch-mode jasmine:test > jasmine.log 2>&1 || JASMINE_FAIL=yes
25
27
# FIXME: add check for src/main/config/nginx/503.*html
@@ -45,6 +47,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
45
47
print_status " $CS_FAIL " ' Run CheckStyle'
46
48
print_status " $PMD_FAIL " ' Run PMD'
47
49
print_status " $LICENSE_FAIL " ' Check license headers'
50
+ print_status " $POM_FAIL " ' Check sorting of pom.xml'
48
51
print_status " $BOOTLINT_FAIL " ' Run bootlint'
49
52
print_status " $JASMINE_FAIL " ' Run JavaScript unit tests'
50
53
print_status " $HTML_FAIL " ' Run html5validator'
@@ -59,6 +62,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
59
62
print_log cs.log ' Run CheckStyle'
60
63
print_log pmd.log ' Run PMD'
61
64
print_log license.log ' Check license headers'
65
+ print_log pom.log ' Check sorting of pom.xml'
62
66
print_log bootlint.log ' Run bootlint'
63
67
print_log jasmine.log ' Run JavaScript unit tests'
64
68
print_log validator.log ' Run html5validator'
@@ -69,6 +73,6 @@ print_log verify.log 'Run integration tests'
69
73
70
74
rm -f cs.log pmd.log license.log bootlint.log jasmine.log validator.log test.log verify.log
71
75
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
73
77
exit 1
74
78
fi
0 commit comments