Skip to content

Instantly share code, notes, and snippets.

@njh
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save njh/9790943 to your computer and use it in GitHub Desktop.
Save njh/9790943 to your computer and use it in GitHub Desktop.
Run 'rake spec' for all the versions of ruby installed using rbenv
#!/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