mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-13 20:16:30 +00:00
17 lines
286 B
Makefile
17 lines
286 B
Makefile
|
.PHONY: gen lint test install man
|
||
|
|
||
|
VERSION := `git vertag get`
|
||
|
COMMIT := `git rev-parse HEAD`
|
||
|
|
||
|
gen:
|
||
|
go generate ./...
|
||
|
|
||
|
lint: gen
|
||
|
golangci-lint run
|
||
|
|
||
|
test: lint
|
||
|
go test -v --race ./...
|
||
|
|
||
|
install: test
|
||
|
go install -a -ldflags "-X=main.version=$(VERSION) -X=main.commit=$(COMMIT)" ./...
|