-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
46 lines (42 loc) · 899 Bytes
/
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
[tox]
envlist = py37,flake8,cover
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
# NOTE: you can run any command line tool here - not just tests
stestr run {posargs}
allowlist_externals =
bash
find
rm
env
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=160
PYTHONDONTWRITEBYTECODE=1
[testenv:flake8]
description =
Run style checks on the changes made since HEAD~.
envdir = {toxworkdir}/shared
commands =
bash tools/flake8wrap.sh -HEAD
[testenv:py37]
description =
Run python3.7 unit tests
[testenv:cover]
description =
Generate a coverage report in cover/.
setenv =
PYTHON=coverage run --source client --parallel-mode
commands =
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage report