Skip to content

Commit e60c6fe

Browse files
committed
move danger to script to fail the build
1 parent ad13786 commit e60c6fe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ before_script:
2424
script:
2525
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
2626
./src/main/scripts/ci/check-build-and-verify.sh;
27-
if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
28-
danger;
29-
fi;
3027
else
3128
./src/main/scripts/ci/check-build-and-verify.sh --only-integration-tests;
3229
fi

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ print_log verify.log 'Run integration tests'
9797

9898
rm -f cs.log pmd.log codenarc.log license.log bootlint.log rflint.log jasmine.log validator.log test.log findbugs.log verify.log
9999

100+
if [ "$SPRING_PROFILES_ACTIVE" = 'travis' -a "${TRAVIS_PULL_REQUEST:-}" != 'false' ]; then
101+
danger
102+
fi
103+
100104
if [ -n "$CS_FAIL$PMD_FAIL$CODENARC_FAIL$LICENSE_FAIL$POM_FAIL$BOOTLINT_FAIL$RFLINT_FAIL$JASMINE_FAIL$HTML_FAIL$TEST_FAIL$FINDBUGS_FAIL$VERIFY_FAIL" ]; then
101105
exit 1
102106
fi

0 commit comments

Comments
 (0)