Build jaillover via Makefile
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: lint build test race coverage install acceptance deps
|
.PHONY: lint build test jaillover race coverage install acceptance deps
|
||||||
|
|
||||||
GOCMD=go
|
GOCMD=go
|
||||||
GOBUILD=$(GOCMD) build
|
GOBUILD=$(GOCMD) build
|
||||||
@@ -6,6 +6,7 @@ GOGET=$(GOCMD) get
|
|||||||
GOTEST=$(GOCMD) test
|
GOTEST=$(GOCMD) test
|
||||||
GOTOOL=$(GOCMD) tool
|
GOTOOL=$(GOCMD) tool
|
||||||
GOLANGLINT=golangci-lint
|
GOLANGLINT=golangci-lint
|
||||||
|
PROJECTREPO=github.com/BBVA/kapow
|
||||||
|
|
||||||
BUILD_DIR=./build
|
BUILD_DIR=./build
|
||||||
OUTPUT_DIR=./output
|
OUTPUT_DIR=./output
|
||||||
@@ -22,9 +23,12 @@ build: deps
|
|||||||
mkdir -p $(BUILD_DIR)
|
mkdir -p $(BUILD_DIR)
|
||||||
CGO_ENABLED=0 $(GOBUILD) -o $(BUILD_DIR)/$(BINARY_NAME) -v
|
CGO_ENABLED=0 $(GOBUILD) -o $(BUILD_DIR)/$(BINARY_NAME) -v
|
||||||
|
|
||||||
test: build
|
test: build jaillover
|
||||||
$(GOTEST) -v -coverprofile=$(TMP_DIR)/c.out ./...
|
$(GOTEST) -v -coverprofile=$(TMP_DIR)/c.out ./...
|
||||||
|
|
||||||
|
jaillover:
|
||||||
|
$(GOGET) $(PROJECTREPO)/testutils/$@
|
||||||
|
|
||||||
race: build
|
race: build
|
||||||
$(GOTEST) -race -v ./...
|
$(GOTEST) -race -v ./...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user