Skip to content

Instantly share code, notes, and snippets.

@cupakromer
Forked from njh/rake-spec-all
Created April 12, 2014 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cupakromer/10546387 to your computer and use it in GitHub Desktop.
Save cupakromer/10546387 to your computer and use it in GitHub Desktop.
#!/bin/bash
for path in `rbenv root`"/versions/"*; do
if [ -d "$path" ] && [ ! -h "$path" ]; then
export RBENV_VERSION="${path##*/}"
echo "=== Running 'rake spec' for $RBENV_VERSION ==="
rm -f Gemfile.lock
rbenv exec bundle install --local
rbenv exec rake spec
echo && echo
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment