-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
45 lines (33 loc) · 1.02 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
[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]
docker =
datasink
db_server
deps =
-r{toxinidir}/dev_requirements.txt
passenv = TST_BUILDER_X,TST_RUNNER_X,GH_TOKEN,TST_REDIS_DIR,DOCKER_HOST,DOCKER_TLS_VERIFY,DOCKER_CERT_PATH,TST_BINARY_REDIS_DIR
stoponfail =
True
commands =
black --check redis_benchmarks_specification
#flake8 redis_benchmarks_specification
coverage erase
coverage run --include=redis_benchmarks_specification/* -m pytest -ra {posargs}
coverage report -m
[docker]
docker_host = unix:///var/run/docker.sock
[docker:datasink]
image = redis/redis-stack-server:7.4.0-v0
expose =
DATASINK_PORT=6379/tcp
[docker:db_server]
image = redis/redis-stack-server:7.4.0-v0
ports =
DBSERVER_PORT=6379/tcp