mirror of
https://github.com/ClusterCockpit/cc-metric-store.git
synced 2024-11-10 05:07:25 +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 755 $(APP) $${WORKSPACE}/usr/$(BINDIR)/$(APP)
|
||||||
@install -Dpm 600 config.json $${WORKSPACE}/etc/$(APP)/$(APP).json
|
@install -Dpm 600 config.json $${WORKSPACE}/etc/$(APP)/$(APP).json
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean test fmt
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
clean:
|
clean:
|
||||||
rm -f $(APP)
|
rm -f $(APP)
|
||||||
|
|
||||||
.PHONY: fmt
|
test:
|
||||||
|
$(info ===> TESTING)
|
||||||
|
@go clean -testcache
|
||||||
|
@go build ./...
|
||||||
|
@go vet ./...
|
||||||
|
@go test ./...
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
go fmt $(GOSRC_APP)
|
go fmt $(GOSRC_APP)
|
||||||
|
|
||||||
# Examine Go source code and reports suspicious constructs
|
|
||||||
.PHONY: vet
|
|
||||||
vet:
|
|
||||||
go vet ./...
|
|
||||||
|
|
||||||
# Run linter for the Go programming language.
|
# Run linter for the Go programming language.
|
||||||
# Using static analysis, it finds bugs and performance issues, offers simplifications, and enforces style rules
|
# Using static analysis, it finds bugs and performance issues, offers simplifications, and enforces style rules
|
||||||
.PHONY: staticcheck
|
.PHONY: staticcheck
|
||||||
|
Loading…
Reference in New Issue
Block a user