1
0
Fork 0
mirror of https://github.com/rbenv/ruby-build.git synced 2025-06-10 05:48:07 +02:00
rbenv-ruby-build/script/test
Mislav Marohnić 3add5c4637 Verify checksums for pull requests from other people
This has the CI step verify the checksums for URLs that might have been
added or edited to build definitions in a pull request.
2014-09-08 09:14:43 -07:00

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"