@@ -23,9 +23,10 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
23
23
' An "img" element must have an "alt" attribute' \
24
24
--show-warnings \
25
25
> validator.log 2>&1 || touch HTML_FAIL
26
+ mvn --batch-mode test -Denforcer.skip=true -DskipMinify=true > test.log 2>&1 || touch TEST_FAIL
26
27
fi
27
28
28
- mvn --batch-mode verify > verify.log 2>&1 || touch VERIFY_FAIL
29
+ mvn --batch-mode verify -Denforcer.skip=true -DskipUnitTests=true > verify.log 2>&1 || touch VERIFY_FAIL
29
30
30
31
echo
31
32
echo ' Build summary:'
@@ -38,9 +39,10 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
38
39
print_status BOOTLINT_FAIL ' Run bootlint'
39
40
print_status JASMINE_FAIL ' Run JavaScript unit tests'
40
41
print_status HTML_FAIL ' Run html5validator'
42
+ print_status TEST_FAIL ' Run unit tests'
41
43
fi
42
44
43
- print_status VERIFY_FAIL ' Compile and run unit/ integration tests'
45
+ print_status VERIFY_FAIL ' Run integration tests'
44
46
45
47
echo
46
48
@@ -51,13 +53,14 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
51
53
print_log bootlint.log ' Run bootlint'
52
54
print_log jasmine.log ' Run JavaScript unit tests'
53
55
print_log validator.log ' Run html5validator'
56
+ print_log test.log ' Run unit tests'
54
57
fi
55
58
56
- print_log verify.log ' Compile and run unit/ integration tests'
59
+ print_log verify.log ' Run integration tests'
57
60
58
- rm -f cs.log pmd.log license.log bootlint.log jasmine.log validator.log verify.log
61
+ rm -f cs.log pmd.log license.log bootlint.log jasmine.log validator.log test.log verify.log
59
62
60
63
if [ -n " $( ls * _FAIL 2> /dev/null) " ]; then
61
- rm -f CS_FAIL PMD_FAIL LICENSE_FAIL BOOTLINT_FAIL JASMINE_FAIL HTML_FAIL VERIFY_FAIL
64
+ rm -f CS_FAIL PMD_FAIL LICENSE_FAIL BOOTLINT_FAIL JASMINE_FAIL HTML_FAIL TEST_FAIL VERIFY_FAIL
62
65
exit 1
63
66
fi
0 commit comments