From 65934216c94e8dcb78bc2756dfb78a21da91f7d9 Mon Sep 17 00:00:00 2001 From: Sylvain Bellemare Date: Fri, 22 Feb 2019 13:50:59 +0000 Subject: [PATCH] Add `set -e -x` to scripts for travis `-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 --- .ci/travis-after-success.sh | 2 ++ .ci/travis-before-install.sh | 2 ++ .ci/travis-install.sh | 2 ++ .ci/travis-script.sh | 2 ++ 4 files changed, 8 insertions(+) diff --git a/.ci/travis-after-success.sh b/.ci/travis-after-success.sh index 367f1404..1bfa1c47 100755 --- a/.ci/travis-after-success.sh +++ b/.ci/travis-after-success.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e -x + if [ "${BUILD}" == "tests" ]; then codecov fi diff --git a/.ci/travis-before-install.sh b/.ci/travis-before-install.sh index 270987ea..70061003 100755 --- a/.ci/travis-before-install.sh +++ b/.ci/travis-before-install.sh @@ -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 diff --git a/.ci/travis-install.sh b/.ci/travis-install.sh index 377d6460..968f6ba7 100755 --- a/.ci/travis-install.sh +++ b/.ci/travis-install.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e -x + pip install --upgrade pip # will not be needed for flake8 diff --git a/.ci/travis-script.sh b/.ci/travis-script.sh index 701b3016..bf144db9 100755 --- a/.ci/travis-script.sh +++ b/.ci/travis-script.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e -x + if [ "${BUILD}" == "tests" ]; then pytest -v --cov=honeybadgerbft elif [ "${BUILD}" == "flake8" ]; then