-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (30 loc) · 1017 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
[tox]
minversion = 1.8
skipsdist = True
envlist = py35,py27,pep8
[testenv]
usedevelop = True
install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
TESTS_DIR={toxinidir}/ironic_python_heartbeater/tests/unit/
deps =
-r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:pep8]
basepython = python2.7
commands =
flake8 {posargs:ironic_python_heartbeater}
doc8 README.rst
[testenv:cover]
commands =
coverage erase
coverage run --branch --include "ironic_python_heartbeater*" -m unittest discover ironic_python_heartbeater.tests.unit
coverage report -m --omit *tests*
[testenv:venv]
commands = {posargs:}
[flake8]
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg