mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-12-31 03:51:41 +01:00
18 lines
416 B
Bash
Executable file
18 lines
416 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
set -x
|
|
|
|
STATUS=0
|
|
bats ${CI:+--tap} test || STATUS="$?"
|
|
|
|
if [ -n "$TRAVIS_COMMIT_RANGE" ]; then
|
|
COMMIT_RANGE="$TRAVIS_COMMIT_RANGE"
|
|
fi
|
|
|
|
if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
|
|
./script/mirror update "$COMMIT_RANGE"
|
|
elif [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ] || [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
|
|
./script/mirror verify "$COMMIT_RANGE"
|
|
fi
|
|
|
|
exit "$STATUS"
|