Skip to content

Commit 0062e99

Browse files
committed
check-build-and-verify.sh,publish-code-coverage.sh: fail when one of the commands failed.
1 parent 41651f3 commit 0062e99

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,7 @@ fi
6868
print_log verify.log 'Run integration tests'
6969

7070
rm -f cs.log pmd.log license.log bootlint.log jasmine.log validator.log test.log verify.log
71+
72+
if [ -n "$CS_FAIL$PMD_FAIL$LICENSE_FAIL$BOOTLINT_FAIL$JASMINE_FAIL$HTML_FAIL$TEST_FAIL$VERIFY_FAIL" ]; then
73+
exit 1
74+
fi

src/main/scripts/ci/publish-code-coverage.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ print_status "$JACOCO_FAIL" 'Publish code coverage'
1111
print_log jacoco.log 'Publish code coverage'
1212

1313
rm -f jacoco.log
14+
15+
if [ -n "$JACOCO_FAIL" ]; then
16+
exit 1
17+
fi

0 commit comments

Comments
 (0)