From 76df65356c0f416e1762e2044c1f7e126b076f72 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin <win10@list.ru> Date: Sun, 28 Jun 2020 15:37:17 +0400 Subject: [PATCH] Fixed tests. Description: - Fixed docker-compose exit-status on testing. Signed-off-by: Pavel Kirilin <win10@list.ru> --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9332b70..b661a71 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,12 @@ clean_prod: docker-compose -f docker-compose.yml down test: - docker-compose -f docker-compose.test.yml up --build + docker-compose -f docker-compose.test.yml up --build --abort-on-container-exit --exit-code-from test_bot_service clean_test: docker-compose -f docker-compose.test.yml down -v _test: - pre-commit run -a + cp .env.example .env + pre-commit run -a || exit 1 pytest -- GitLab