This repository has been archived by the owner on Mar 18, 2021. It is now read-only.
forked from openstack-archive/networking-nec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (40 loc) · 1.46 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
[tox]
minversion = 1.6
envlist = py34,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command =
# networking-nec is still targetted to Mitaka development,
# so we need to use upper-constraints.txt from stable/mitaka branch.
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/mitaka} {opts} {packages}
# Note the hash seed is set to 0 until neutron can be tested with a
# random hash seed successfully.
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = sh
commands =
sh tools/pretty_tox.sh '{posargs}'
# there is also secret magic in pretty_tox.sh which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.
[testenv:pep8]
deps =
{[testenv]deps}
commands =
flake8
sh ./tools/coding-checks.sh --pylint '{posargs}'
neutron-db-manage --subproject networking-nec --database-connection sqlite:// check_migration
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=networking_nec --testr-args='{posargs}'
[testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build
[hacking]
import_exceptions = networking_nec._i18n
local-check-factory = neutron.hacking.checks.factory