-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 712 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (24 loc) · 712 Bytes
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
28
29
30
31
32
33
files := $(shell find . -name "*.go" | grep -v vendor)
bootstrap:
go install -v golang.org/x/lint/golint@latest
go install -v golang.org/x/tools/...@latest
go install -v honnef.co/go/tools/cmd/staticcheck@latest
clean:
goimports -w $(files)
test: clean
go test
lint:
golint -set_exit_status
golint -set_exit_status example
staticcheck github.com/sdcoffey/techan
staticcheck github.com/sdcoffey/techan/example
bench: clean
go test -bench .
commit: test
git commit
release: clean test lint
./scripts/release.sh
test-with-coverage:
go test -race -cover -covermode=atomic -coverprofile=coverage.txt github.com/sdcoffey/techan
view-coverage: test-with-coverage
go tool cover -html coverage.txt