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

* added integration test dependencies * added rabbitMQ use case integration test * configured rabbitMQ integration test URI * fix typo, configured integration test pipeline
30 lines
578 B
Makefile
30 lines
578 B
Makefile
DOCKER_COMPOSE := $(shell which docker-compose)
|
|
|
|
ifeq (${DOCKER_COMPOSE},)
|
|
DOCKER_COMPOSE = docker compose
|
|
endif
|
|
|
|
beelzebub.start:
|
|
${DOCKER_COMPOSE} build;
|
|
${DOCKER_COMPOSE} up -d;
|
|
|
|
beelzebub.stop:
|
|
${DOCKER_COMPOSE} down;
|
|
|
|
test.unit:
|
|
go test ./...
|
|
|
|
test.unit.verbose:
|
|
go test ./... -v
|
|
|
|
test.dependencies.start:
|
|
${DOCKER_COMPOSE} -f ./integration_test/docker-compose.yml up -d
|
|
|
|
test.dependencies.down:
|
|
${DOCKER_COMPOSE} -f ./integration_test/docker-compose.yml down
|
|
|
|
test.integration:
|
|
INTEGRATION=1 go test ./...
|
|
|
|
test.integration.verbose:
|
|
INTEGRATION=1 go test ./... -v
|