#!/bin/sh
echo "Running specs.hs"
exec runhaskell hspec.hs --format=progress --specs specs.hs
Where specs.hs are the file with the specs for the hspec library and the --specs option tells the hspec executable to run it's own specs.
On my Mac I need to make the hook executable by running
chmod +x .git/hooks/pre-commit
No comments:
Post a Comment