64
64
65
65
mvn --batch-mode verify -Denforcer.skip=true -DskipUnitTests=true > verify-raw.log 2>&1 || VERIFY_FAIL=yes
66
66
67
+ if [ " $SPRING_PROFILES_ACTIVE " = ' travis' -a " ${TRAVIS_PULL_REQUEST:- } " != ' false' ]; then
68
+ danger > danger.log 2>&1 || DANGER_FAIL=yes
69
+ fi
70
+
67
71
# Workaround for #538
68
72
" $( dirname " $0 " ) /filter-out-htmlunit-messages.pl" < verify-raw.log > verify.log
69
73
@@ -87,6 +91,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
87
91
fi
88
92
89
93
print_status " $VERIFY_FAIL " ' Run integration tests'
94
+ print_status " $DANGER_FAIL " ' Run danger'
90
95
91
96
echo
92
97
@@ -105,12 +110,8 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
105
110
print_log findbugs.log ' Run FindBugs'
106
111
fi
107
112
108
- print_log verify.log ' Run integration tests'
109
-
110
- if [ " $SPRING_PROFILES_ACTIVE " = ' travis' -a " ${TRAVIS_PULL_REQUEST:- } " != ' false' ]; then
111
- # danger uses log files and it should be run before these files will be cleaned
112
- danger || DANGER_FAIL=yes
113
- fi
113
+ print_log verify.log ' Run integration tests'
114
+ print_log danger.log ' Run danger'
114
115
115
116
# In order to be able debug robot framework test flakes we need to have a report.
116
117
# Just encode it to a binary form and dump to console.
@@ -120,7 +121,7 @@ if fgrep -qs 'status="FAIL"' target/robotframework-reports/output.xml; then
120
121
echo " ===== REPORT END ====="
121
122
fi
122
123
123
- rm -f cs.log pmd.log codenarc.log license.log pom.log bootlint.log rflint.log jasmine.log validator.log enforcer.log test.log findbugs.log verify-raw.log verify.log
124
+ rm -f cs.log pmd.log codenarc.log license.log pom.log bootlint.log rflint.log jasmine.log validator.log enforcer.log test.log findbugs.log verify-raw.log verify.log danger.log
124
125
125
126
if [ -n " $CS_FAIL$PMD_FAIL$CODENARC_FAIL$LICENSE_FAIL$POM_FAIL$BOOTLINT_FAIL$RFLINT_FAIL$JASMINE_FAIL$HTML_FAIL$ENFORCER_FAIL$TEST_FAIL$FINDBUGS_FAIL$VERIFY_FAIL$DANGER_FAIL " ]; then
126
127
exit 1
0 commit comments