Skip to content

Instantly share code, notes, and snippets.

@Zloy
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save Zloy/26c1db0284ea425cc687 to your computer and use it in GitHub Desktop.

Select an option

Save Zloy/26c1db0284ea425cc687 to your computer and use it in GitHub Desktop.
Run rspec in vagrant from overcommit hook
Put to `bin/rspec_vagrant` file
#!/bin/bash
(cd ../vbox && vagrant ssh -c 'source ~/.bash_profile && cd my_src/latera/loms && bundle exec rspec')
Put to `.overcommit.yml`
PrePush:
RSpec:
command: bin/vagrant_rspec
enabled: true
on_warn: fail # Treat all warnings as failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment