From 7474368ae6cbd4af1dce2883b9fd5d71a555ff3d Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Tue, 24 Mar 2020 11:45:12 -0400 Subject: [PATCH] make test.sh fail if any command fails --- ci/actions/test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/actions/test.sh b/ci/actions/test.sh index 6f0145859ed..0b2db4cf038 100755 --- a/ci/actions/test.sh +++ b/ci/actions/test.sh @@ -1,6 +1,8 @@ #!/bin/bash -cargo test --features "$FEATURES num-bigint num-complex" +set -e -u -o pipefail + +cargo test --features "${FEATURES:-} num-bigint num-complex" (cd pyo3-derive-backend; cargo test) for example_dir in examples/*; do