-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
53 lines (45 loc) · 1.18 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
[tox]
isolated_build = True
[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
stoponfail = True
commands =
black --check redisbench_admin
flake8 redisbench_admin
coverage erase
coverage run --include=redisbench_admin/* -m pytest -ra {posargs}
coverage report -m
coverage xml
docker =
rts_datasink
db_server
client_server
[docker:rts_datasink]
image = redis/redis-stack-server:7.0.2-RC4
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