Last active
July 25, 2016 14:34
-
-
Save buccolo/7045126df1a0854f55f875970a798b67 to your computer and use it in GitHub Desktop.
Bisector
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/zsh | |
# abort on errors | |
set -e | |
# setup correct ruby | |
source $(brew --prefix chruby)/share/chruby/chruby.sh | |
chruby $(cat ~/dev/project/.ruby-version) | |
# reproduce issue | |
cd ~/dev/project | |
bundle exec rspec spec/your_spec.rb |
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
git bisect start | |
git bisect bad # current bad commit | |
git bisect good master # last working commit | |
git bisect run ../bisect.sh | |
git bisect reset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment