Created
June 27, 2014 13:32
-
-
Save fatso83/c0dc8bd8bcd0ee3a1ba4 to your computer and use it in GitHub Desktop.
pre-commit hook for the framework: sanity checking and testing
This file contains 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 | |
check() { | |
cd develop && npm install && grunt sanity-checks | |
} | |
if [[ $(git symbolic-ref --short HEAD) == 'internal' ]]; then | |
echo On internal branch - testing commit | |
check | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment