-
Notifications
You must be signed in to change notification settings - Fork 99
/
Makefile
27 lines (19 loc) · 611 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
all: test bench vet lint check-gofmt
bench:
go test -race -bench . -run "Benchmark" ./form
build:
go build ./...
check-gofmt:
scripts/check_gofmt.sh
lint:
golint -set_exit_status ./...
test:
go test -v ./...
vet:
go vet ./...
coverage:
# go currently cannot create coverage profiles when testing multiple packages, so we test each package
# independently. This issue should be fixed in Go 1.10 (https://github.com/golang/go/issues/6909).
go list ./... | xargs -n1 -I {} -P 4 go test -covermode=count -coverprofile=../../../{}/profile.coverprofile {}
clean:
find . -name \*.coverprofile -delete