Makefile raw
1 GOCMD=go
2
3 linters-install:
4 @golangci-lint --version >/dev/null 2>&1 || { \
5 echo "installing linting tools..."; \
6 curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.41.1; \
7 }
8
9 lint: linters-install
10 golangci-lint run
11
12 test:
13 $(GOCMD) test -cover -race ./...
14
15 bench:
16 $(GOCMD) test -run=NONE -bench=. -benchmem ./...
17
18 .PHONY: test lint linters-install
19