Last active
August 29, 2015 14:21
-
-
Save Zloy/26c1db0284ea425cc687 to your computer and use it in GitHub Desktop.
Run rspec in vagrant from overcommit hook
This file contains hidden or 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
| 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