1
0
Fork 0
mirror of https://github.com/rbenv/ruby-build.git synced 2025-07-15 23:01:43 +02:00
rbenv-ruby-build/script/test
Mislav Marohnić 4ed38ba4bc 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.
2013-10-28 02:25:08 +01:00

13 lines
234 B
Bash
Executable file

#!/usr/bin/env bash
set -e
[ -d ./bats/bin ] && export PATH=./bats/bin:"$PATH"
STATUS=0
bats -t test || STATUS="$?"
if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
./script/mirror update "$TRAVIS_COMMIT_RANGE"
fi
exit "$STATUS"