forked from TrueCloudLab/neoneo-go
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:
parent
450063de7d
commit
8de080f6ec
2 changed files with 14 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -40,3 +40,7 @@ blockchains/
|
||||||
# patch
|
# patch
|
||||||
*.orig
|
*.orig
|
||||||
*.rej
|
*.rej
|
||||||
|
|
||||||
|
# Coverage
|
||||||
|
coverage.txt
|
||||||
|
coverage.html
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -60,3 +60,13 @@ test:
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
@go 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
|
||||||
|
|
Loading…
Reference in a new issue