-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-compose.yml
More file actions
41 lines (41 loc) · 934 Bytes
/
Copy pathtest-compose.yml
File metadata and controls
41 lines (41 loc) · 934 Bytes
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
version: '3'
services:
coder-core-test:
container_name: coder-core-test
image: coder-core:test
build:
context: .
volumes:
- .:/home/coder/coder-core
- /home/coder/coder-core/codercore.egg-info
networks:
- test
env_file:
- database.env.test
- cache.env.test
depends_on:
- database-test
- cache-test
tty: true
stdin_open: true
entrypoint: "/bin/bash"
command: >
-c "../util/wait-for-it.sh database-test:5432 &&
pytest --cov=codercore --cov-report term-missing -n logical -q"
database-test:
container_name: coder-core-db-test
image: postgres:15
networks:
- test
env_file:
- database.env.test
cache-test:
container_name: coder-core-cache-test
image: redis:7
command: ["redis-server", "--databases", "128"]
networks:
- test
env_file:
- cache.env.test
networks:
test: