-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
37 lines (35 loc) · 1.01 KB
/
docker-compose.test.yml
File metadata and controls
37 lines (35 loc) · 1.01 KB
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
services:
db-test:
container_name: alexclaw-db-test
image: pgvector/pgvector:pg17
environment:
POSTGRES_USER: alexclaw
POSTGRES_PASSWORD: testpass
POSTGRES_DB: alex_claw_test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U alexclaw -d alex_claw_test"]
interval: 3s
timeout: 2s
retries: 5
test-elixir:
container_name: alexclaw-test-elixir
build:
context: .
target: test
depends_on:
db-test:
condition: service_healthy
environment:
MIX_ENV: test
DATABASE_USERNAME: alexclaw
DATABASE_PASSWORD: testpass
DATABASE_HOSTNAME: db-test
DATABASE_NAME: alex_claw_test
SECRET_KEY_BASE: test_secret_key_base_that_is_at_least_64_bytes_long_for_phoenix_to_accept_it
test-python:
build: ./web-automator
entrypoint: ["sh", "-c"]
command: ["pip install pytest pytest-asyncio httpx && cd /app && python -m pytest tests/ -v"]
working_dir: /app
volumes:
- ./web-automator/tests:/app/tests