From 08c708341b895085a6ec94aef98e47f5288c4899 Mon Sep 17 00:00:00 2001 From: Pierre-Alain TORET Date: Sun, 10 Jun 2018 16:32:12 +0200 Subject: [PATCH] Makefile: add test target Signed-off-by: Pierre-Alain TORET --- Makefile | 2 ++ api/Makefile | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 58c7c43..6437e41 100644 --- a/Makefile +++ b/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 diff --git a/api/Makefile b/api/Makefile index 2523bf8..236aea6 100644 --- a/api/Makefile +++ b/api/Makefile @@ -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))