@@ -13,6 +13,14 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
13
13
mvn --batch-mode license:check > license.log 2>&1 || touch LICENSE_FAIL
14
14
find src -type f -name ' *.html' | xargs bootlint > bootlint.log 2>&1 || touch BOOTLINT_FAIL
15
15
mvn --batch-mode jasmine:test > jasmine.log 2>&1 || touch JASMINE_FAIL
16
+ # FIXME: add check for src/main/config/nginx/503.*html
17
+ html5validator \
18
+ --root src/main/webapp/WEB-INF/views \
19
+ --ignore-re ' Attribute “(th|sec|togglz|xmlns):[a-z]+” not allowed' \
20
+ ' Attribute “(th|sec|togglz):[a-z]+” is not serializable' \
21
+ ' Attribute with the local name “xmlns:[a-z]+” is not serializable' \
22
+ --show-warnings \
23
+ > validator.log 2>&1 || touch HTML_FAIL
16
24
fi
17
25
18
26
mvn --batch-mode verify > verify.log 2>&1 || touch VERIFY_FAIL
@@ -27,25 +35,27 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
27
35
print_status LICENSE_FAIL ' Check license headers'
28
36
print_status BOOTLINT_FAIL ' Run bootlint'
29
37
print_status JASMINE_FAIL ' Run JavaScript unit tests'
38
+ print_status HTML_FAIL ' Run html5validator'
30
39
fi
31
40
32
41
print_status VERIFY_FAIL ' Compile and run unit/integration tests'
33
42
34
43
echo
35
44
36
45
if [ " $RUN_ONLY_INTEGRATION_TESTS " = ' no' ]; then
37
- print_log cs.log ' Run CheckStyle'
38
- print_log pmd.log ' Run PMD'
39
- print_log license.log ' Check license headers'
40
- print_log bootlint.log ' Run bootlint'
41
- print_log jasmine.log ' Run JavaScript unit tests'
46
+ print_log cs.log ' Run CheckStyle'
47
+ print_log pmd.log ' Run PMD'
48
+ print_log license.log ' Check license headers'
49
+ print_log bootlint.log ' Run bootlint'
50
+ print_log jasmine.log ' Run JavaScript unit tests'
51
+ print_log validator.log ' Run html5validator'
42
52
fi
43
53
44
54
print_log verify.log ' Compile and run unit/integration tests'
45
55
46
- rm -f cs.log pmd.log license.log bootlint.log verify .log jasmine .log
56
+ rm -f cs.log pmd.log license.log bootlint.log jasmine .log validator.log verify .log
47
57
48
58
if [ -n " $( ls * _FAIL 2> /dev/null) " ]; then
49
- rm -f CS_FAIL PMD_FAIL LICENSE_FAIL BOOTLINT_FAIL VERIFY_FAIL JASMINE_FAIL
59
+ rm -f CS_FAIL PMD_FAIL LICENSE_FAIL BOOTLINT_FAIL JASMINE_FAIL HTML_FAIL VERIFY_FAIL
50
60
exit 1
51
61
fi
0 commit comments