-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
55 lines (43 loc) · 865 Bytes
/
tox.ini
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
53
54
55
[tox]
env_list =
pg13
[docker:postgres13]
dockerfile=docker/postgres/13/Dockerfile
volumes =
bind:rw:{toxinidir}:/opt/gristfdw
links=grist:grist
ports=5433:5432/tcp
environment=
POSTGRES_PASSWORD=secret
POSTGRES_USER=gristfdw
POSTGRES_DB=gristfdw
PYTHONPATH=/opt/gristfdw
healthcheck_cmd = \
PGPASSWORD=$POSTGRES_PASSWORD psql \
--user=$POSTGRES_USER \
--dbname=$POSTGRES_DB \
--host=127.0.0.1 \
--quiet \
--no-align \
--tuples-only \
-1 \
--command="SELECT 1" \
healthcheck_interval = 0.1
healthcheck_retries = 100
[docker:grist]
image=gristlabs/grist
ports=8484:8484/tcp
volumes =
bind:rw:{toxinidir}/test/grist_persist:/persist
environment =
GRIST_DEFAULT_EMAIL=test@example.com
[testenv]
commands =
pytest {posargs}
deps =
pytest
psycopg2
[testenv:pg13]
docker =
grist
postgres13