Skip to content

Commit 50c7197

Browse files
committed
Revert ".travis.yml: fail build when code in before_script or script blocks fails."
This reverts commit 0b3ec75. We shouldn't use exit in .travis.yml as it exit immediately from a script and don't allow to the Travis CI code to be executed at all. For example, after_failure block won't be executed in this case. Because errexit works as exit 1 we shouldn't use it too. Addressed to #631
1 parent ea9c8a6 commit 50c7197

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ 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
1312
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
1413
mysql -u root -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
1514
mysql -u root -e "GRANT ALL PRIVILEGES ON mystamps.* TO 'travis'@'%';";
@@ -27,7 +26,6 @@ before_script:
2726
fi
2827

2928
script:
30-
- set -o errexit # exit immediately when commands return a non-zero status
3129
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
3230
./src/main/scripts/ci/check-build-and-verify.sh;
3331
else

0 commit comments

Comments
 (0)