parent
2db1853101
commit
d95a2dc60d
@ -1,5 +1,10 @@ |
||||
#!/bin/bash |
||||
|
||||
go test ./... |
||||
if [ $? -ne 0 ]; then |
||||
echo "Some tests failed" |
||||
exit 1 |
||||
fi |
||||
if [ $(golint ./... | wc | awk '{print $1}') -gt 2 ]; then |
||||
echo "Go code is not formatted:" |
||||
gofmt -d . |
Loading…
Reference in new issue