Skip to content

Commit 22b3e5b

Browse files
committed
check-build-and-verify.sh: fix condition for running danger.
Correction for 65bf44b commit.
1 parent a309046 commit 22b3e5b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

+4-7
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ TEST_STATUS=
3131
FINDBUGS_STATUS=
3232
VERIFY_STATUS=
3333

34-
DANGER_STATUS=
35-
if [ "${SPRING_PROFILES_ACTIVE:-}" != 'travis' -o "${TRAVIS_PULL_REQUEST:-false}" = 'false' ]; then
36-
DANGER_STATUS=skip
34+
DANGER_STATUS=skip
35+
if [ "${SPRING_PROFILES_ACTIVE:-}" = 'travis' -a "${TRAVIS_PULL_REQUEST:-false}" != 'false' ]; then
36+
DANGER_STATUS=
3737
fi
3838

3939
if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
@@ -204,10 +204,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
204204
fi
205205

206206
print_status "$VERIFY_STATUS" 'Run integration tests'
207-
208-
if [ "$DANGER_STATUS" != 'skip' ]; then
209-
print_status "$DANGER_STATUS" 'Run danger'
210-
fi
207+
print_status "$DANGER_STATUS" 'Run danger'
211208

212209
echo
213210

0 commit comments

Comments
 (0)