mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
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.
33 lines
798 B
33 lines
798 B
6 years ago
|
BUMP_VERSION := $(GOPATH)/bin/bump_version
|
||
|
MEGACHECK := $(GOPATH)/bin/megacheck
|
||
|
WRITE_MAILMAP := $(GOPATH)/bin/write_mailmap
|
||
|
|
||
|
IGNORES := 'github.com/kevinburke/ssh_config/config.go:U1000 github.com/kevinburke/ssh_config/config.go:S1002 github.com/kevinburke/ssh_config/token.go:U1000'
|
||
|
|
||
|
$(MEGACHECK):
|
||
|
go get honnef.co/go/tools/cmd/megacheck
|
||
|
|
||
|
lint: $(MEGACHECK)
|
||
|
go vet ./...
|
||
|
$(MEGACHECK) --ignore=$(IGNORES) ./...
|
||
|
|
||
|
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
|