1
0
mirror of https://github.com/xorcare/testing-go-code-with-postgres.git synced 2025-01-29 18:53:56 +02:00

Make return the exit code of a 'migrate' service container

This will make it easier to debug problems, because if an error occurs,
it returns from docker-compose and interrupts the chain of commands,
for example:

make test-env-down test-env-up test
This commit is contained in:
Vasiliy Vasilyuk 2023-08-20 16:26:26 +03:00
parent b98187650e
commit d697a4bcc7
No known key found for this signature in database
GPG Key ID: ABDC64414756A7B6

View File

@ -20,7 +20,7 @@ test-short: ## Run only unit tests, tests without I/O dependencies.
.PHONY: test-env-up
test-env-up: ## Run test environment.
@docker-compose up migrate
@docker-compose up --exit-code-from migrate migrate
.PHONY: test-env-down
test-env-down: ## Down and cleanup test environment.