From d49233f45bd2461f0453bdd08dd0b3b712719a7c Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Tue, 13 Feb 2018 18:21:24 +0300 Subject: [PATCH] Update gitlab-test.sh (#7883) * Update gitlab-test.sh https://github.com/paritytech/parity/issues/7871 * Update aura-test.sh --- scripts/aura-test.sh | 3 +++ scripts/gitlab-test.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/aura-test.sh b/scripts/aura-test.sh index bb152beba..bccd3ce6c 100755 --- a/scripts/aura-test.sh +++ b/scripts/aura-test.sh @@ -1,4 +1,7 @@ #!/bin/bash +set -e # fail on any error +set -u # treat unset variables as error + cargo build -j $(nproc) --release --features final $CARGOFLAGS git clone https://github.com/paritytech/parity-import-tests cp target/release/parity parity-import-tests/aura/parity diff --git a/scripts/gitlab-test.sh b/scripts/gitlab-test.sh index d2644e528..cc0a63dc1 100755 --- a/scripts/gitlab-test.sh +++ b/scripts/gitlab-test.sh @@ -21,10 +21,10 @@ rust_test () { rustup show if [[ "${RUST_FILES_MODIFIED}" == "0" ]]; then echo "Skipping Rust tests since no Rust files modified."; - else ./test.sh; + else ./test.sh || exit $?; fi if [[ "$CI_COMMIT_REF_NAME" == "nightly" ]]; - then sh scripts/aura-test.sh; + then sh scripts/aura-test.sh || exit $?; fi } js_test () {