-
Notifications
You must be signed in to change notification settings - Fork 108
/
tox.ini
49 lines (45 loc) · 1.09 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
[tox]
minversion = 3.5.0
skipdist = True
skip_missing_interpreters = True
isolated_build = True
envlist = lint,server,agent
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
envars =
PATH = {env:PATH}:{toxinidir}/bin
whitelist_externals =
bash
rm
find
env
[testenv:server]
passenv = PBENCH_UNITTEST_SERVER_MODE
deps =
-r{toxinidir}/server/requirements.txt
-r{toxinidir}/test-requirements.txt
commands_pre =
find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
commands =
bash -c "./server/bin/unittests {posargs}"
[testenv:agent]
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/agent/test-requirements.txt
commands_pre =
find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
commands =
bash -c "./agent/run-unittests"
[testenv:lint]
description = Runs all linting tasks
commands =
black --check .
flake8 .
deps =
black==19.10b0
flake8==3.8.3
skip_install = true
usedevelop = false