mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 17:34:11 -05:00
a9b4c8171f
* update gopkg.in/src-d/go-git.v4 v4.13.0 * mod tidy * vendor
30 lines
624 B
Makefile
30 lines
624 B
Makefile
BUMP_VERSION := $(GOPATH)/bin/bump_version
|
|
STATICCHECK := $(GOPATH)/bin/staticcheck
|
|
WRITE_MAILMAP := $(GOPATH)/bin/write_mailmap
|
|
|
|
$(STATICCHECK):
|
|
go get honnef.co/go/tools/cmd/staticcheck
|
|
|
|
lint: $(STATICCHECK)
|
|
go vet ./...
|
|
$(STATICCHECK)
|
|
|
|
test: lint
|
|
@# the timeout helps guard against infinite recursion
|
|
go test -timeout=250ms ./...
|
|
|
|
race-test: lint
|
|
go test -timeout=500ms -race ./...
|
|
|
|
$(BUMP_VERSION):
|
|
go get -u github.com/kevinburke/bump_version
|
|
|
|
release: test | $(BUMP_VERSION)
|
|
$(BUMP_VERSION) minor config.go
|
|
|
|
force: ;
|
|
|
|
AUTHORS.txt: force | $(WRITE_MAILMAP)
|
|
$(WRITE_MAILMAP) > AUTHORS.txt
|
|
|
|
authors: AUTHORS.txt
|