Skip to content

Commit 747486a

Browse files
committed
ci: fail fast in before_script section.
Found during investigation of #1148 See travis-ci/travis-ci#10480
1 parent 46bad13 commit 747486a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ jobs:
1616
- env: SPRING_PROFILES_ACTIVE=postgres
1717

1818
# @todo #1054 Unify PostgreSQL version/configuration between Travis and docker-compose
19+
# set -e is needed to fail fast. See https://github.com/travis-ci/travis-ci/issues/10480
1920
before_script:
20-
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
21+
- set -e;
22+
if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
2123
mysql -u root -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
2224
mkdir -p /tmp/uploads /tmp/preview;
2325
cp src/main/resources/test/test.png /tmp/uploads/1.png;

0 commit comments

Comments
 (0)