forked from openstack-charmers/zaza-openstack-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
30 lines (25 loc) · 773 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
[tox]
envlist = pep8, py3
skipsdist = True
# NOTE: Avoid build/test env pollution by not enabling sitepackages.
sitepackages = False
# NOTE: Avoid false positives by not skipping missing interpreters.
skip_missing_interpreters = False
ignore_basepython_conflict = True
[testenv]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
commands = pytest --cov=zaza.openstack {posargs} {toxinidir}/unit_tests
deps = -r{toxinidir}/requirements.txt
[testenv:pep8]
commands = flake8 {posargs} zaza unit_tests
[testenv:venv]
commands = /bin/true
[flake8]
ignore = E402,E226,W504
per-file-ignores =
unit_tests/**: D
[testenv:docs]
changedir = doc/source
commands = sphinx-build -W -b html -d {toxinidir}/doc/build/doctrees . {toxinidir}/doc/build/html