Created
December 14, 2011 08:28
-
-
Save morimori/1475724 to your computer and use it in GitHub Desktop.
Jasmine と RSpec を実行する git pre-commit 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
#! /bin/sh | |
# Run all specs | |
git stash --keep-index | |
RAILS_ENV=test bundle exec rake assets:precompile jasmine:headless assets:clean spec | |
result=$? | |
git stash pop | |
[ $result -ne 0 ] && exit $result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment