Skip to content

Commit

Permalink
Add set -e -x to scripts for travis
Browse files Browse the repository at this point in the history
`-e`: exit immediately if a simple command exits with a non-zero status
`-x`: print a trace of simple commands and their arguments after they
      are expanded and before they are executed
  • Loading branch information
sbellem committed Feb 22, 2019
1 parent 63fbae6 commit 6593421
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ci/travis-after-success.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e -x

if [ "${BUILD}" == "tests" ]; then
codecov
fi
2 changes: 2 additions & 0 deletions .ci/travis-before-install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e -x

if [ "${BUILD}" != "flake8" ]; then
apt-get update -qq
apt-get -y install flex bison libgmp-dev libmpc-dev python-dev libssl-dev
Expand Down
2 changes: 2 additions & 0 deletions .ci/travis-install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e -x

pip install --upgrade pip

# will not be needed for flake8
Expand Down
2 changes: 2 additions & 0 deletions .ci/travis-script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e -x

if [ "${BUILD}" == "tests" ]; then
pytest -v --cov=honeybadgerbft
elif [ "${BUILD}" == "flake8" ]; then
Expand Down

0 comments on commit 6593421

Please sign in to comment.