選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

20 行
451 B

  1. # note: call scripts from /scripts
  2. GOCMD=GO111MODULE=on go
  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.21.0; \
  7. }
  8. lint: linters-install
  9. $(PWD)/bin/golangci-lint run
  10. test:
  11. $(GOCMD) test -cover -race ./...
  12. bench:
  13. $(GOCMD) test -bench=. -benchmem ./...
  14. .PHONY: test lint linters-install