Skip to content

Instantly share code, notes, and snippets.

@morimori
Created December 14, 2011 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morimori/1475724 to your computer and use it in GitHub Desktop.
Save morimori/1475724 to your computer and use it in GitHub Desktop.
Jasmine と RSpec を実行する git pre-commit hook
#! /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