rbenv-ruby-build/script/test
Benoit Daloze 964e83a039 Run script/mirror verify on GitHub Actions too
* So the shasums are checked in PRs.
2021-07-07 20:04:22 +02:00

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"