-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.09 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: "3.4"
services:
test:
build:
context: .
target: testing
volumes:
- "./tests:/usr/src/app/tests"
- "./test-data:/usr/src/app/test-data"
- "./pdf_service:/usr/src/app/pdf_service"
- "./coverage:/usr/src/app/coverage"
- "./.pytest_cache:/usr/src/app/.pytest_cache"
command: |
python -m pytest
-rA
--cov=pdf_service
--cov-report term
--cov-report html:coverage/cov_html
--cov-report xml:coverage/cov.xml
--cov-report annotate:coverage/cov_annotate
test-watch:
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:
context: .
target: testing
volumes:
- "./tests:/usr/src/app/tests"
- "./test-data:/usr/src/app/test-data"
- "./pdf_service:/usr/src/app/pdf_service"
command: python pdf_service/toolbox.py update