forked from danobot/entity-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
34 lines (30 loc) · 1.09 KB
/
docker-compose.yaml
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
version: '3.3'
services:
test:
build: .
container_name: testing
volumes:
- .:/app
# command: [ "pytest-watch", "--ext=.py,.yaml", "--","-s","--tb=line" ]
component-test:
build:
context: .
dockerfile: Dockerfile.component
container_name: component-test
command: [ "ptw","--","-sv" ]
volumes:
- ./custom_components/entity_controller/__init__.py:/usr/src/app/homeassistant/components/entity_controller/__init__.py:ro
- ./tests/test_lightingsm.py:/usr/src/app/tests/components/test_lightingsm.py:ro
- ./pytest.ini:/usr/src/app/pytest.ini:ro
component-test-ci:
build:
context: .
dockerfile: Dockerfile.component
container_name: component-test-ci
command: [ "pytest" ]
volumes:
# - G:\Repos\hass-dev:/config
- ./custom_components/entity_controller/__init__.py:/usr/src/app/homeassistant/components/entity_controller/__init__.py:ro
- ./tests/test_lightingsm.py:/usr/src/app/tests/components/test_lightingsm.py:ro
- ./pytest.ini:/usr/src/app/pytest.ini:ro
# - ${PWD}:/usr/src/app