Matteo Scandolo | 9a2772a | 2018-11-19 14:56:26 -0800 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | set -e | ||||
4 | |||||
5 | # check there are no formatting issues | ||||
6 | GOFMT_LINES=`gofmt -l . | wc -l | xargs` | ||||
7 | test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues" | ||||
8 | |||||
9 | # run the tests for the root package | ||||
10 | go test -race . |