ruby-build/script/test

13 lines
297 B
Text
Raw Permalink Normal View History

#!/usr/bin/env bash
set -e
STATUS=0
2015-02-27 02:16:46 +13:00
bats ${CI:+--tap} test || STATUS="$?"
if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
./script/mirror update "$TRAVIS_COMMIT_RANGE"
elif [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ]; then
./script/mirror verify "$TRAVIS_COMMIT_RANGE"
fi
exit "$STATUS"