Skip to content

Instantly share code, notes, and snippets.

@agenteo
Created Oct 14, 2015
Embed
What would you like to do?
#!/bin/bash
# BEFORE RUNNING: remember to "cp .env-example .env" in order for the tests
# to pick up the required environment variables!
unset BUNDLE_GEMFILE
result=0
if [ "$CI" == "true" ]; then
BUNDLE_PATH="$HOME/vendor/bundle"
fi
for test_script in $(find . -name test.sh); do
pushd `dirname $test_script` > /dev/null
source "$HOME/.rvm/scripts/rvm"
rvm use $(cat .ruby-version)@$(cat .ruby-gemset) --create
./test.sh
result+=$?
popd > /dev/null
done
if [ $result -eq 0 ]; then
echo "🏈 SUCCESS :-)"
else
echo "💔 FAILURE ;-("
fi
exit $result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment