浏览代码

Update Makefile

tags/v1.0.0
guanguans 3 年前
父节点
当前提交
820cc4d729
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. +18
    -0
      Makefile

+ 18
- 0
Makefile 查看文件

@@ -1 +1,19 @@
# note: call scripts from /scripts
GOCMD=GO111MODULE=on go

linters-install:
@golangci-lint --version >/dev/null 2>&1 || { \
echo "installing linting tools..."; \
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.21.0; \
}

lint: linters-install
$(PWD)/bin/golangci-lint run

test:
$(GOCMD) test -cover -race ./...

bench:
$(GOCMD) test -bench=. -benchmem ./...

.PHONY: test lint linters-install

正在加载...
取消
保存