File: validate.sh

package info (click to toggle)
golang-github-cloudflare-go-metrics 0.0~git20151117.0.6a9aea3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 308 kB
  • ctags: 567
  • sloc: makefile: 7; sh: 4
file content (10 lines) | stat: -rwxr-xr-x 239 bytes parent folder | download | duplicates (6)
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 .