mirror of
https://github.com/ClusterCockpit/cc-metric-store.git
synced 2024-12-26 00:49:05 +01:00
Add test target in Makefile
This commit is contained in:
parent
dc1ee0f17c
commit
61892666a7
15
Makefile
15
Makefile
@ -29,20 +29,21 @@ install: $(APP)
|
||||
@install -Dpm 755 $(APP) $${WORKSPACE}/usr/$(BINDIR)/$(APP)
|
||||
@install -Dpm 600 config.json $${WORKSPACE}/etc/$(APP)/$(APP).json
|
||||
|
||||
.PHONY: clean
|
||||
.PHONY: clean test fmt
|
||||
.ONESHELL:
|
||||
clean:
|
||||
rm -f $(APP)
|
||||
|
||||
.PHONY: fmt
|
||||
test:
|
||||
$(info ===> TESTING)
|
||||
@go clean -testcache
|
||||
@go build ./...
|
||||
@go vet ./...
|
||||
@go test ./...
|
||||
|
||||
fmt:
|
||||
go fmt $(GOSRC_APP)
|
||||
|
||||
# Examine Go source code and reports suspicious constructs
|
||||
.PHONY: vet
|
||||
vet:
|
||||
go vet ./...
|
||||
|
||||
# Run linter for the Go programming language.
|
||||
# Using static analysis, it finds bugs and performance issues, offers simplifications, and enforces style rules
|
||||
.PHONY: staticcheck
|
||||
|
Loading…
Reference in New Issue
Block a user