Skip to content

Commit

Permalink
Specify testing target for development commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mormahr committed Sep 1, 2021
1 parent 93ba4b5 commit fe01045
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -17,15 +19,19 @@ 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"
- "./pdf_service:/usr/src/app/pdf_service"
- "./.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"
Expand Down

0 comments on commit fe01045

Please sign in to comment.