Created
March 20, 2015 17:46
-
-
Save deivid-rodriguez/7be3d6465d80dc4bf97d to your computer and use it in GitHub Desktop.
Helper script to help git bisecting byebug
This file contains 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 | |
# Source RVM as a function into local environment. | |
[ -s "$HOME/.rvm/scripts/rvm" ] && . "$HOME/.rvm/scripts/rvm" | |
# Compile and install Ruby | |
./configure | |
make && sudo make install | |
# Setup convenient variables | |
ref=$(git show -s --pretty=format:'%h') | |
ruby_version="2.3.0-${ref}" | |
ruby_name="ext-${ruby_version}" | |
byebug_dir="~/Work/byebug" | |
# Mount new Ruby | |
rvm mount /usr/local/bin/ruby ${ruby_name} | |
# Test Byebug against new Ruby | |
cd ${byebug_dir} | |
rvm use ${ruby_name} | |
bundle | |
script/loop_tests.sh 8 ${ruby_name} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment