From fe0104599ef2cf4828c49447237342af731712a4 Mon Sep 17 00:00:00 2001 From: Moritz Mahringer Date: Thu, 2 Sep 2021 01:35:07 +0200 Subject: [PATCH] Specify testing target for development commands --- docker-compose.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 86bc2455..9d17ff4a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,9 @@ -version: "3" +version: "3.4" services: test: - build: . + build: + context: . + target: testing volumes: - "./tests:/usr/src/app/tests" - "./test-data:/usr/src/app/test-data" @@ -17,7 +19,9 @@ services: --cov-report xml:coverage/cov.xml --cov-report annotate:coverage/cov_annotate test-watch: - build: . + build: + context: . + target: testing volumes: - "./tests:/usr/src/app/tests" - "./test-data:/usr/src/app/test-data" @@ -25,7 +29,9 @@ services: - "./.pytest_cache:/usr/src/app/.pytest_cache" command: pytest-watch -p update-test-data: - build: . + build: + context: . + target: testing volumes: - "./tests:/usr/src/app/tests" - "./test-data:/usr/src/app/test-data"