-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
60 lines (49 loc) · 1.28 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
[tox]
isolated_build = True
envlist = integration-tests
[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3
[testenv:integration-tests]
deps =
-r{toxinidir}/dev_requirements.txt
pytest-cov
stoponfail = True
commands =
black --check redisbench_admin
flake8 redisbench_admin
coverage erase
pytest --cov=redisbench_admin --cov-report=term-missing -ra {posargs}
coverage xml
[docker]
docker_host = unix:///var/run/docker.sock
docker =
rts_datasink
db_server
client_server
[docker:rts_datasink]
image = redis/redis-stack-server:7.2.0-v11
ports =
16379:6379/tcp
[docker:db_server]
image = ghcr.io/linuxserver/openssh-server
ports =
2222:2222/tcp
environment =
PUBLIC_KEY_DIR=/test-ssh
PUBLIC_KEY=tox_rsa.pub
USER_NAME=ubuntu
volumes =
bind:ro:{toxinidir}/tests/test_data/test-ssh/pub:/test-ssh
[docker:client_server]
image = ghcr.io/linuxserver/openssh-server
ports =
222:2222/tcp
environment =
PUBLIC_KEY_DIR=/test-ssh
PUBLIC_KEY=tox_rsa.pub
USER_NAME=ubuntu
volumes =
bind:ro:{toxinidir}/tests/test_data/test-ssh/pub:/test-ssh