mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-06-10 05:48:07 +02:00
This has the CI step verify the checksums for URLs that might have been added or edited to build definitions in a pull request.
15 lines
331 B
Bash
Executable file
15 lines
331 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"
|
|
elif [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
|
./script/mirror verify "$TRAVIS_COMMIT_RANGE"
|
|
fi
|
|
|
|
exit "$STATUS"
|