mirror of
https://github.com/hanzokv/lock.git
synced 2026-10-30 15:07:01 +00:00
25 lines
444 B
Makefile
25 lines
444 B
Makefile
.PHONY: test
|
|
test:
|
|
go test -race ./...
|
|
|
|
.PHONY: test.build
|
|
test.build:
|
|
mkdir -p test.out/
|
|
for f in $(shell go list ./...); do \
|
|
go test -race -c -o test.out/`echo "$$f" | sha256sum | cut -c1-5`-`basename "$$f"` $$f ; \
|
|
done
|
|
|
|
.PHONY: test.run
|
|
test.run:
|
|
for f in test.out/*; do \
|
|
$$f ; \
|
|
done
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
staticcheck ./...
|
|
|
|
.PHONY: lint.tools.install
|
|
lint.tools.install:
|
|
go install honnef.co/go/tools/cmd/[email protected]
|