File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,15 @@ jobs:
15
15
allow_failures :
16
16
- env : SPRING_PROFILES_ACTIVE=postgres
17
17
18
- # set -e is needed to fail fast. See https://github.com/travis-ci/travis-ci/issues/10480
18
+ # * set -e is needed to fail fast.
19
+ # See https://github.com/travis-ci/travis-ci/issues/10480
20
+ # * travis_terminate allows us to gracefully handle "set -e" shutdown.
21
+ # See https://travis-ci.community/t/log-are-truncated-when-my-script-exits-abnormally/5878
22
+ #
19
23
# @todo #1054 Unify PostgreSQL version/configuration between Travis and docker-compose
20
24
before_script :
21
- - set -e;
25
+ - trap 'travis_terminate 1' ERR;
26
+ set -e;
22
27
if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
23
28
mysql -u root -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
24
29
mkdir -p /tmp/uploads /tmp/preview;
You can’t perform that action at this time.
0 commit comments