Last active
September 15, 2016 16:22
-
-
Save benhorst/9b4d3cd98472d2a05aece6f01bf3fbd7 to your computer and use it in GitHub Desktop.
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/bash | |
master="refs/heads/master" | |
read local_ref local_sha remote_ref remote_sha | |
echo $remote_ref | |
if [ "$remote_ref" = master ] | |
then | |
echo "attempting to push master branch, running tests..." | |
npm run test | |
fi | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment