Created
January 22, 2015 01:36
-
-
Save cmdrkeene/ddc8e18a13016a056b33 to your computer and use it in GitHub Desktop.
Simple auto test for Go
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/bash | |
which entr > /dev/null | |
if [ $? -ne 0 ]; then | |
echo "installing entr" | |
brew install entr | |
else | |
echo "watching go files" | |
fi | |
while sleep 1; do | |
ls *.go | entr -d -c go test ./... -logtostderr=true | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment