validate.sh 245 B

1234567891011
  1. #!/bin/bash
  2. set -e
  3. # check there are no formatting issues
  4. GOFMT_LINES=`gofmt -l . | wc -l | xargs`
  5. test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues"
  6. # run the tests for the root package
  7. go test -race .