forked from confluentinc/ducktape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
56 lines (49 loc) · 1.51 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
[tox]
envlist = py27, py36, py37, cover, style
[testenv]
# Consolidate all deps here instead of separately in test/style/cover so we
# have a single env to work with, which makes debugging easier (like which env?).
# Not as clean but easier to work with during development, which is better.
deps =
flake8==3.7.*
mock==2.0.*
pytest==4.4.*
pytest-cov==2.6.*
pytest-xdist==1.28.*
psutil==4.1.0
memory_profiler==0.41
statistics==1.0.3.5
requests-testadapter==0.3.0
install_command =
pip install -U {packages}
recreate = False
skipsdist = True
usedevelop = True
setenv =
PIP_PROCESS_DEPENDENCY_LINKS=1
PIP_DEFAULT_TIMEOUT=60
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
envdir = {homedir}/.virtualenvs/ducktape_{envname}
commands =
pytest {env:PYTESTARGS:} {posargs}
[testenv:py27]
envdir = {homedir}/.virtualenvs/ducktape-py2
[testenv:py36]
envdir = {homedir}/.virtualenvs/ducktape-py36
[testenv:py37]
envdir = {homedir}/.virtualenvs/ducktape-py37
[testenv:style]
basepython = python3.7
envdir = {homedir}/.virtualenvs/ducktape
commands =
flake8 --config tox.ini
[testenv:cover]
basepython = python3.7
envdir = {homedir}/.virtualenvs/ducktape
commands =
pytest {env:PYTESTARGS:} --cov ducktape --cov-report=xml --cov-report=html --cov-report=term --cov-report=annotate:textcov \
--cov-fail-under=70
[flake8]
exclude = .git,.tox,.eggs,__pycache__,docs,build,dist
ignore = E111,E121,W292,E123,E226,W503
max-line-length = 120