Skip to content

Instantly share code, notes, and snippets.

@timotree3
Last active March 19, 2017 03:38
Show Gist options
  • Save timotree3/d69b0fb90c8affbd705765abeabc489d to your computer and use it in GitHub Desktop.
Save timotree3/d69b0fb90c8affbd705765abeabc489d to your computer and use it in GitHub Desktop.
My holochain githooks (put in .git/hooks)
#!/bin/bash
if [ -n "$(gofmt -s -l .)" ]; then
echo "\`gofmt -s -w .\` your code."
exit 1
fi
#!/bin/bash
if make test > /dev/null; then
echo "test passed"
else
echo "test failed"
exit 1
fi
make publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment