mirror of
https://github.com/strongdm/comply
synced 2024-11-17 13:24:53 +00:00
27 lines
456 B
Makefile
27 lines
456 B
Makefile
|
SHELL = /bin/bash -o pipefail
|
||
|
|
||
|
BUMP_VERSION := $(GOPATH)/bin/bump_version
|
||
|
STATICCHECK := $(GOPATH)/bin/staticcheck
|
||
|
|
||
|
deps:
|
||
|
go get -u ./...
|
||
|
|
||
|
test: lint
|
||
|
go test ./...
|
||
|
|
||
|
lint: | $(STATICCHECK)
|
||
|
go vet ./...
|
||
|
$(STATICCHECK) ./...
|
||
|
|
||
|
$(STATICCHECK):
|
||
|
go get honnef.co/go/tools/cmd/staticcheck
|
||
|
|
||
|
race-test: lint
|
||
|
go test -race ./...
|
||
|
|
||
|
$(BUMP_VERSION):
|
||
|
go get github.com/kevinburke/bump_version
|
||
|
|
||
|
release: race-test | $(BUMP_VERSION)
|
||
|
$(BUMP_VERSION) minor client.go
|