本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
624B

  1. BUMP_VERSION := $(GOPATH)/bin/bump_version
  2. STATICCHECK := $(GOPATH)/bin/staticcheck
  3. WRITE_MAILMAP := $(GOPATH)/bin/write_mailmap
  4. $(STATICCHECK):
  5. go get honnef.co/go/tools/cmd/staticcheck
  6. lint: $(STATICCHECK)
  7. go vet ./...
  8. $(STATICCHECK)
  9. test: lint
  10. @# the timeout helps guard against infinite recursion
  11. go test -timeout=250ms ./...
  12. race-test: lint
  13. go test -timeout=500ms -race ./...
  14. $(BUMP_VERSION):
  15. go get -u github.com/kevinburke/bump_version
  16. release: test | $(BUMP_VERSION)
  17. $(BUMP_VERSION) minor config.go
  18. force: ;
  19. AUTHORS.txt: force | $(WRITE_MAILMAP)
  20. $(WRITE_MAILMAP) > AUTHORS.txt
  21. authors: AUTHORS.txt
上海开阖软件有限公司 沪ICP备12045867号-1