Makefile: add test target
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
This commit is contained in:
parent
c59a53515c
commit
08c708341b
2
Makefile
2
Makefile
@ -28,6 +28,8 @@ DB_DEVEL_ROOT_DIR = $(DEVEL_BUILD_DIR)/db
|
||||
DB_PROD_BUILD_DIR = $(DB_BUILD_DIR)/$(PROD_BUILD_DIR)
|
||||
DB_PROD_ROOT_DIR = $(PROD_BUILD_DIR)/db
|
||||
|
||||
test: api
|
||||
|
||||
devel: frontend api templates db devel-copy
|
||||
|
||||
prod: frontend api templates db prod-copy
|
||||
|
@ -11,6 +11,8 @@ GO_DEVEL_BUILD_BINARY = $(GO_DEVEL_BUILD_DIR)/commento-ce
|
||||
GO_PROD_BUILD_DIR = $(PROD_BUILD_DIR)
|
||||
GO_PROD_BUILD_BINARY = $(GO_PROD_BUILD_DIR)/commento-ce
|
||||
|
||||
test: test-go
|
||||
|
||||
devel: devel-go
|
||||
|
||||
prod: prod-go
|
||||
@ -30,4 +32,8 @@ prod-go:
|
||||
go get .
|
||||
go build -i -v -o $(GO_PROD_BUILD_BINARY)
|
||||
|
||||
test-go:
|
||||
go get .
|
||||
go test -v .
|
||||
|
||||
$(shell mkdir -p $(GO_DEVEL_BUILD_DIR) $(GO_PROD_BUILD_DIR))
|
||||
|
Loading…
Reference in New Issue
Block a user