Skip to content

Commit 0b3ec75

Browse files
committed
.travis.yml: fail build when code in before_script or script blocks fails.
1 parent d5289a4 commit 0b3ec75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
- secure: "fBav56BzY+A+Vs1g9YSfo1oLDCO1rFrXl49lJkOA5/XpnsKEEs4lI2RcOzz0wiJKXFNgcliiAJWoYMI8Esqz+lkyFWan4ij5Co0UzJcytDuY+2o+jaqwx45DuDYPogABzT+hWjLCxQLLG46gUkChzT8kcvOOn6JxC7Ff8q5MnoM="
1010

1111
before_script:
12+
- set -o errexit # exit immediately when commands return a non-zero status
1213
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
1314
mysql -u travis -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
1415
mkdir -p /tmp/uploads /tmp/preview;
@@ -25,6 +26,7 @@ before_script:
2526
fi
2627

2728
script:
29+
- set -o errexit # exit immediately when commands return a non-zero status
2830
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
2931
./src/main/scripts/ci/check-build-and-verify.sh;
3032
else

0 commit comments

Comments
 (0)