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.
This commit is contained in:
Mislav Marohnić 2013-10-28 02:25:08 +01:00
parent e8a3cc82e3
commit 4ed38ba4bc

View file

@ -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"