-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
43 lines (41 loc) · 1.57 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
[tox]
envlist = tests
skipsdist = true
requires =
tox>=3.25.0,<4
tox-envfile
tox-faster
tox-run-command
[testenv]
skip_install = true
setenv =
PYTHONUNBUFFERED = 1
OBJC_DISABLE_INITIALIZE_FORK_SAFETY = YES
dev: BROKER_URL_H = {env:BROKER_URL_H:amqp://guest:guest@localhost:5672//}
dev: BROKER_URL_CHECKMATE = {env:BROKER_URL_CHECKMATE:amqp://guest:guest@localhost:5673//}
dev: BROKER_URL_LMS = {env:BROKER_URL_LMS:amqp://guest:guest@localhost:5674//}
dev: FLOWER_AUTH_PROVIDER = flower.views.auth.GoogleAuth2LoginHandler
dev: FLOWER_AUTH = .*@hypothes.is
dev: FLOWER_TASKS_COLUMNS = name,uuid,state,args,kwargs,result,received,started,runtime,worker,retries,revoked,exception,expires,eta
passenv =
HOME
deps =
pip-tools
pip-sync-faster
commands_pre =
pip-sync-faster requirements/{env:TOX_ENV_NAME}.txt --pip-args '--disable-pip-version-check'
commands =
dev: {posargs:supervisord -c conf/supervisord-dev.conf}
template: python3 bin/make_template {posargs}
[testenv:dev]
# By default when you Ctrl-c the `make dev` command tox is too aggressive about
# killing supervisor. tox kills supervisor before supervisor has had time to
# stop or kill its child processes, resulting in detached child processes being
# left running and other problems.
#
# Fix this by configuring tox to wait a long time before sending any further
# SIGINTs (after the first one) or SIGTERMs or SIGKILLs to supervisor.
# Just trust supervisor to clean up all its child processes and stop.
suicide_timeout = 60.0
interrupt_timeout = 60.0
terminate_timeout = 60.0