forked from thenewguy/django-celery-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
78 lines (65 loc) · 1.44 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[tox]
envlist =
py{310,311,312}-django52
py{310,311,312}-django42
py{310,311,312}-django41
py{310,311,312}-django40
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
commands =
pip freeze
{posargs:python runtests.py --noinput --keepdb -v 2}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
psycopg2-binary
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django52: Django>=5.1,<5.3
basepython =
py312: python3.12
py311: python3.11
py310: python3.10
docker =
postgres
redis
dockerenv =
POSTGRES_PASSWORD=pgpass
POSTGRES_USER=pguser
POSTGRES_DB=pgdb
[travis:env]
DJANGO =
4.0: django40
4.1: django41
4.2: django42
5.2: django52
[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:13
#healthcheck_cmd = pg_isready
#healthcheck_interval = 3
#healthcheck_timeout = 3
#healthcheck_retries = 30
#healthcheck_start_period = 5
[docker:postgres]
image = postgres:13
environment =
POSTGRES_DB=pgdb
PGUSER=pguser
POSTGRES_PASSWORD=pgpass
POSTGRES_HOST_AUTH_METHOD=trust
ports =
5432:5432/tcp
healthcheck_cmd = pg_isready
healthcheck_timeout = 5
healthcheck_retries = 5
healthcheck_interval = 5
healthcheck_start_period = 1