Skip to content

Instantly share code, notes, and snippets.

@trobrock
Created June 5, 2019 20:32
Show Gist options
  • Save trobrock/24ebd4b945643526c72107a8095b5db3 to your computer and use it in GitHub Desktop.
Save trobrock/24ebd4b945643526c72107a8095b5db3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Run this with `git bisect start BAD_SHA GOOD_SHA ; git bisect run ~/git-bisect.sh`
# Run migrations, bundle, etc to make sure the app updates through time, and ensure there is a clean git tree
bundle install
git checkout Gemfile.lock
# Run the test, the exec is important so it returns the proper status code
exec rspec spec/models/tasks/inventory_clone_spec.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment