quorum/metrics/validate.sh

11 lines
245 B
Bash
Raw Normal View History

#!/bin/bash
set -e
# check there are no formatting issues
GOFMT_LINES=`gofmt -l . | wc -l | xargs`
test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues"
# run the tests for the root package
2018-05-23 22:32:26 -07:00
go test -race .