Last active
August 29, 2015 14:15
-
-
Save maslenkov/78c2b125c0d5d66022a1 to your computer and use it in GitHub Desktop.
git bisect with script
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 --login | |
cd ~/path/to/project_dir/ | |
bundle install | |
bundle exec rake db:test:prepare | |
line=$(bundle exec rspec path/to/spec/feature_name_spec.rb | grep 1\ failure) | |
if [ ${line:-null} = null ]; then | |
exit 0 | |
else | |
exit 1 | |
fi |
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
# into your shell: | |
cd ~/path/to/project_dir/ | |
nano check.sh | |
chmod +x check.sh | |
git bisect start HEAD good_commit_hash | |
git bisect run ./check.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment