2023-02-26 18:04:05 +01:00
|
|
|
DOCKER_COMPOSE := $(shell which docker-compose)
|
|
|
|
|
|
|
|
ifeq (${DOCKER_COMPOSE},)
|
|
|
|
DOCKER_COMPOSE = docker compose
|
|
|
|
endif
|
|
|
|
|
2023-05-25 08:30:40 -05:00
|
|
|
.PHONY: beelzebub.start
|
2023-02-26 18:04:05 +01:00
|
|
|
beelzebub.start:
|
|
|
|
${DOCKER_COMPOSE} build;
|
|
|
|
${DOCKER_COMPOSE} up -d;
|
|
|
|
|
2023-05-25 08:30:40 -05:00
|
|
|
.PHONY: beelzebub.stop
|
2023-02-26 18:04:05 +01:00
|
|
|
beelzebub.stop:
|
|
|
|
${DOCKER_COMPOSE} down;
|
|
|
|
|
2023-05-25 08:30:40 -05:00
|
|
|
.PHONY: test.unit
|
2023-02-26 18:04:05 +01:00
|
|
|
test.unit:
|
|
|
|
go test ./...
|
|
|
|
|
2023-05-25 08:30:40 -05:00
|
|
|
.PHONY: test.unit.verbose
|
2023-02-26 18:04:05 +01:00
|
|
|
test.unit.verbose:
|
|
|
|
go test ./... -v
|
|
|
|
|
2023-05-25 08:30:40 -05:00
|
|
|
.PHONY: test.dependencies.start
|
2023-03-21 11:20:12 +01:00
|
|
|
test.dependencies.start:
|
|
|
|
${DOCKER_COMPOSE} -f ./integration_test/docker-compose.yml up -d
|
|
|
|
|
2023-05-25 08:30:40 -05:00
|
|
|
.PHONY: test.dependencies.down
|
2023-03-21 11:20:12 +01:00
|
|
|
test.dependencies.down:
|
|
|
|
${DOCKER_COMPOSE} -f ./integration_test/docker-compose.yml down
|
|
|
|
|
2023-05-25 08:30:40 -05:00
|
|
|
.PHONY: test.integration
|
2023-02-26 18:04:05 +01:00
|
|
|
test.integration:
|
|
|
|
INTEGRATION=1 go test ./...
|
|
|
|
|
2023-05-25 08:30:40 -05:00
|
|
|
.PHONY: test.integration.verbose
|
2023-02-26 18:04:05 +01:00
|
|
|
test.integration.verbose:
|
2023-05-25 08:30:40 -05:00
|
|
|
INTEGRATION=1 go test ./... -v
|