Browse Source

move makefile to helper

pull/251/head
yedf2 4 years ago
parent
commit
61860d1a96
  1. 23
      helper/Makefile

23
helper/Makefile

@ -0,0 +1,23 @@
# dev env https://www.dtm.pub/other/develop.html
all: fmt lint test_all cover_test
.PHONY: all
fmt:
@gofmt -s -w ./
lint:
@golangci-lint run
.PHONY: test
test:
@go test ./...
test_all:
TEST_STORE=redis go test ./...
TEST_STORE=boltdb go test ./...
TEST_STORE=mysql go test ./...
TEST_STORE=postgres go test ./...
cover_test:
./helper/test-cover.sh
Loading…
Cancel
Save