forked from mback2k/django-celery-model
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
46 lines (37 loc) · 813 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
[tox]
envlist =
{py36,py37,py38}
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
commands =
pip freeze
{posargs:python runtests.py --noinput --keepdb}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
basepython =
py38: python3.8
py37: python3.7
py36: python3.6
docker =
postgres
redis
dockerenv =
POSTGRES_PASSWORD=pgpass
POSTGRES_USER=pguser
POSTGRES_DB=pgdb
[docker:redis]
image = redis:5.0
healthcheck_cmd = redis-cli ping | grep -q PONG
healthcheck_interval = 3
healthcheck_timeout = 3
healthcheck_retries = 30
healthcheck_start_period = 5
[docker:postgres]
image = postgres:12.0
healthcheck_cmd = pg_isready
healthcheck_interval = 3
healthcheck_timeout = 3
healthcheck_retries = 30
healthcheck_start_period = 5