travis: Use travis_terminate instead of exit

This commit is contained in:
Tomas Babej 2019-01-01 11:53:21 -05:00
parent 1d7d86e709
commit 8c8ffa1173

View file

@ -20,6 +20,6 @@ matrix:
install: install:
# Build the docker container # Build the docker container
- pushd $TRAVIS_BUILD_DIR - pushd $TRAVIS_BUILD_DIR
- if [[ $CONTAINER != "osx" ]]; then docker-compose build test-$CONTAINER || exit 1; fi - if [[ $CONTAINER != "osx" ]]; then docker-compose build test-$CONTAINER || travis_terminate 1; fi
script: script:
- if [[ $CONTAINER != "osx" ]]; then docker-compose up test-$CONTAINER || exit 1; else bash test/scripts/test_osx.sh || exit 1 ; fi - if [[ $CONTAINER != "osx" ]]; then docker-compose up test-$CONTAINER || travis_terminate 1; else bash test/scripts/test_osx.sh || travis_terminate 1 ; fi