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:
parent
b98187650e
commit
d697a4bcc7
2
Makefile
2
Makefile
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user