mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00

* update: add .PHONY notation to Makefile commands * patch: Makefile according to style guide Signed-off-by: Mario Candela <m4r10.php@gmail.com> --------- Signed-off-by: Mario Candela <m4r10.php@gmail.com> Co-authored-by: v0id <v0id@TheLab> Co-authored-by: Mario Candela <m4r10.php@gmail.com>
39 lines
791 B
Makefile
39 lines
791 B
Makefile
DOCKER_COMPOSE := $(shell which docker-compose)
|
|
|
|
ifeq (${DOCKER_COMPOSE},)
|
|
DOCKER_COMPOSE = docker compose
|
|
endif
|
|
|
|
.PHONY: beelzebub.start
|
|
beelzebub.start:
|
|
${DOCKER_COMPOSE} build;
|
|
${DOCKER_COMPOSE} up -d;
|
|
|
|
.PHONY: beelzebub.stop
|
|
beelzebub.stop:
|
|
${DOCKER_COMPOSE} down;
|
|
|
|
.PHONY: test.unit
|
|
test.unit:
|
|
go test ./...
|
|
|
|
.PHONY: test.unit.verbose
|
|
test.unit.verbose:
|
|
go test ./... -v
|
|
|
|
.PHONY: test.dependencies.start
|
|
test.dependencies.start:
|
|
${DOCKER_COMPOSE} -f ./integration_test/docker-compose.yml up -d
|
|
|
|
.PHONY: test.dependencies.down
|
|
test.dependencies.down:
|
|
${DOCKER_COMPOSE} -f ./integration_test/docker-compose.yml down
|
|
|
|
.PHONY: test.integration
|
|
test.integration:
|
|
INTEGRATION=1 go test ./...
|
|
|
|
.PHONY: test.integration.verbose
|
|
test.integration.verbose:
|
|
INTEGRATION=1 go test ./... -v
|