forked from tox-dev/tox-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (33 loc) · 1.01 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
[tox]
envlist = integration,registry,healthcheck-builtin,healthcheck-custom
[testenv]
# commands_pre/_post only work in tox 3.4+, but at least in some
# CI configurations they'll tell us if we've leaked resources
commands_pre = python capture_containers_and_volumes.py
commands_post = python assert_containers_and_volumes_unchanged.py
[testenv:integration]
docker =
nginx:1.13-alpine
ksdn117/tcp-udp-test
dockerenv =
ENV_VAR=env-var-value
deps = pytest
commands = py.test [] test_integration.py
[testenv:registry]
docker = docker.io/library/nginx:1.13-alpine
deps = pytest
commands = py.test [] test_registry.py
[testenv:healthcheck-builtin]
docker = healthcheck/redis:alpine
deps = pytest
commands = py.test [] test_healthcheck.py
[testenv:healthcheck-custom]
docker = redis:5-alpine
deps = pytest
commands = py.test [] test_healthcheck.py
[docker:redis:5-alpine]
healthcheck_cmd = redis-cli ping | grep -q PONG
healthcheck_interval = 1
healthcheck_timeout = 1
healthcheck_retries = 30
healthcheck_start_period = 0.5