Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save deivid-rodriguez/7be3d6465d80dc4bf97d to your computer and use it in GitHub Desktop.
Save deivid-rodriguez/7be3d6465d80dc4bf97d to your computer and use it in GitHub Desktop.
Helper script to help git bisecting byebug
#!/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