Skip to content

Commit 82f3aeb

Browse files
committed
Ensure Travis CI build exits if build fails
1 parent 2a12395 commit 82f3aeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ before_script:
3434
- /bin/sh "$TRAVIS_BUILD_DIR/rabbitmq_server-$RABBITMQ_VERSION/sbin/rabbitmqctl" status
3535

3636
script:
37+
# See https://github.com/travis-ci/travis-ci/issues/1066 and https://github.com/pika/pika/pull/984#issuecomment-370565220
38+
# as to why 'set -e' and 'set +e' are added here
39+
- set -e
3740
- /bin/sh "$TRAVIS_BUILD_DIR/build.sh"
3841
- /bin/sh -c "RABBITMQ_RABBITMQCTL_PATH=$TRAVIS_BUILD_DIR/rabbitmq_server-$RABBITMQ_VERSION/sbin/rabbitmqctl $TRAVIS_BUILD_DIR/run-test.sh"
42+
- set +e

0 commit comments

Comments
 (0)