aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rcrowley/go-metrics/validate.sh
blob: f6499982e58652f09bbab46e3ed1243a381fdc11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/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
go test .