forked from distributed-system-analysis/pbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (50 loc) · 1.45 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]
minversion = 3.18.0
isolated_build = True
toxworkdir = {env:TOXWORKDIR:/var/tmp/{env:USER}/tox}
distshare = {toxworkdir}/distshare
envlist = py39
[testenv]
description = Runs all agent, client, and server unit/functional tests
install_command = pip install --cache-dir={toxworkdir}/cache --progress-bar off --prefix={envdir} {opts} {packages}
passenv =
CONTAINER_HOST
COV_REPORT_XML
DEBUG_EXEC_UNITTESTS
HOME
NO_COLORS
PBENCH_UNITTEST_PARALLEL
PB_CONTAINER_REG
PY_COLORS
TERM
USER
WORKSPACE
WORKSPACE_TMP
setenv =
VIRTUAL_ENV = {envdir}
XDG_CACHE_HOME = {envdir}
SKIP_GENERATE_AUTHORS = 1
SKIP_WRITE_GIT_CHANGELOG = 1
deps =
-r{toxinidir}/agent/requirements.txt
-r{toxinidir}/client/requirements.txt
-r{toxinidir}/server/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/server/test-requirements.txt
commands =
bash -c "{toxinidir}/exec-tests {envdir} {posargs}"
allowlist_externals =
bash
[testenv:agent-py36]
description = Runs all agent unit tests under Python 3.6
basepython = python3.6
deps =
-c{toxinidir}/agent/test-constraints-3.6.txt
-r{toxinidir}/agent/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:alembic-migration]
description = Verify alembic migrations cover latest database schema
deps =
-r{toxinidir}/server/requirements.txt
commands =
bash -c "{toxinidir}/lib/pbench/server/database/alembic.migration {posargs}"