Makefile: add some convenience targets

Tiny wrappers to quickly do things needed. Some of them are not that simple to
type into the CLI manually every time.
This commit is contained in:
Roman Khimov 2019-09-09 11:11:49 +03:00
parent 450063de7d
commit 8de080f6ec
2 changed files with 14 additions and 0 deletions

4
.gitignore vendored
View file

@ -40,3 +40,7 @@ blockchains/
# patch
*.orig
*.rej
# Coverage
coverage.txt
coverage.html

View file

@ -60,3 +60,13 @@ test:
vet:
@go vet ./...
lint:
@go list ./... | xargs -L1 golint -set_exit_status
fmt:
@gofmt -l -w -s $$(find . -type f -name '*.go'| grep -v "/vendor/")
cover:
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic
@go tool cover -html=coverage.txt -o coverage.html