Last active
August 29, 2015 13:57
-
-
Save njh/9790943 to your computer and use it in GitHub Desktop.
Run 'rake spec' for all the versions of ruby installed using rbenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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