Skip to content

Instantly share code, notes, and snippets.

@fatso83
Created June 27, 2014 13:32
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 fatso83/c0dc8bd8bcd0ee3a1ba4 to your computer and use it in GitHub Desktop.
Save fatso83/c0dc8bd8bcd0ee3a1ba4 to your computer and use it in GitHub Desktop.
pre-commit hook for the framework: sanity checking and testing
#!/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