Skip to content

Commit

Permalink
Add set -e to multiline commands in Travis (mypyc/mypyc#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
ed1d1a8d authored and msullivan committed Jul 21, 2018
1 parent a7f0d67 commit ce2741a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ matrix:
env: PYTHONVERSION=3.6.3

before_install: |
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export PYTHONVERSION=`python --version | awk '{ print $2 }'`
Expand Down Expand Up @@ -61,6 +62,7 @@ install:
- pip install -r external/mypy/test-requirements.txt

script: |
set -e
export PYTHONPATH=`pwd`/external/mypy
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export PYTHONCONFIG="$PYTHONDIR/bin/python-config"
Expand Down

0 comments on commit ce2741a

Please sign in to comment.