-
Notifications
You must be signed in to change notification settings - Fork 47
/
tox.ini
74 lines (62 loc) · 1.61 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tox]
envlist = pep8,py3
skipsdist = False
# NOTE: https://wiki.canonical.com/engineering/OpenStack/InstallLatestToxOnOsci
minversion = 3.2.0
[testenv]
setenv =
VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
allowlist_external =
juju
passenv =
HOME
TERM
CS_*
OS_*
TEST_*
PIP_*
deps =
-c{env:PIP_CONSTRAINTS:{toxinidir}/constraints-juju29.txt}
-r{toxinidir}/test-requirements.txt
commands = pytest --cov=./zaza/ {posargs} {toxinidir}/unit_tests
[testenv:.pkg]
pass_env =
# NOTE: This is required because tox>=4 will not pass env. See https://github.com/tox-dev/tox/issues/2543.
TEST_JUJU3
[testenv:py3]
basepython = python3
[testenv:pep8]
basepython = python3
commands = flake8 {posargs} zaza unit_tests
[testenv:venv]
basepython = python3
commands = /bin/true
[flake8]
ignore = E402,E226,W504
per-file-ignores =
unit_tests/**: D
[testenv:docs]
basepython = python3
changedir = doc/source
commands = sphinx-build -W -b html -d {toxinidir}/doc/build/doctrees . {toxinidir}/doc/build/html
[testenv:func]
basepython = python3
commands =
{envdir}/bin/python3 setup.py install
functest-run-suite --keep-faulty-model
[testenv:func-target]
basepython = python3
commands =
{envdir}/bin/python3 setup.py install
functest-run-suite --keep-model --bundle {posargs}
[testenv:func-target-extended]
basepython = python3
commands =
{envdir}/bin/python3 setup.py install
functest-run-suite --keep-model --test-directory {toxinidir}/tests-extended --log INFO --bundle {posargs}
[testenv:remove-placement]
basepython = python3
commands =
{envdir}/bin/python3 setup.py install
remove-placement {posargs}