From 4ed38ba4bceafa3f8908a05b58e6bcf219fbbdc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 28 Oct 2013 02:25:08 +0100 Subject: [PATCH] Run `mirror update` on CI even if tests failed If a commit introduced a new Ruby definition, we want it mirrored even if there might have been an accidental failure on CI. --- script/test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/test b/script/test index 6e708f1e..d7a667e3 100755 --- a/script/test +++ b/script/test @@ -3,8 +3,11 @@ set -e [ -d ./bats/bin ] && export PATH=./bats/bin:"$PATH" -bats -t test +STATUS=0 +bats -t test || STATUS="$?" if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then ./script/mirror update "$TRAVIS_COMMIT_RANGE" fi + +exit "$STATUS"