forked from shakenfist/shakenfist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
57 lines (52 loc) · 1.06 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
57
[tox]
envlist = py38,flake8,cover
skipsdist=true
[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}
stestr slowest
allowlist_externals =
bash
find
rm
env
tar
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
SHAKENFIST_ETCD_HOST='127.0.0.1'
[testenv:flake8]
description =
Run style checks on the changes made since HEAD~.
envdir = {toxworkdir}/shared
commands =
bash tools/flake8wrap.sh -HEAD
[testenv:docs]
description =
Ensure the docs build.
envdir = {toxworkdir}/shared
commands =
mkdocs build
[testenv:py38]
description =
Run python3.8 unit tests
[testenv:cover]
description =
Generate a coverage report in cover/.
setenv =
PYTHON=coverage run --source shakenfist --parallel-mode
commands =
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage report