-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.06 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
40
41
42
43
44
45
46
47
48
49
50
51
52
version: "3"
volumes:
pip:
services:
# localhost:8123
hass:
image: homeassistant/home-assistant:2024.1.0
restart: unless-stopped
volumes:
- ./hass:/config
- ./custom_components:/config/custom_components:ro
environment:
TZ: Europe/Stockholm
ports: [ "8123:8123" ]
lint:
image: cimg/python:3.11
volumes:
- "./:/files:ro"
- pip:/tmp/pip:ro
working_dir: /files
entrypoint: [ pylint ]
command:
- custom_components/purei9
- tests
pip_install:
image: cimg/python:3.11
volumes:
- "./requirements.txt:/requirements.txt:ro"
- pip:/home/circleci/pip
entrypoint: [ pip3 ]
command:
- install
- --target
- ~/pip
- --no-cache-dir
- --requirement
- /requirements.txt
- --upgrade
test:
image: cimg/python:3.11
volumes:
- "./:/files:ro"
- pip:/tmp/pip:ro
working_dir: /files
entrypoint: [ python3 ]
command:
- -m
- unittest
- discover
- --start-directory
- tests
- --verbose