forked from openstack-archive/senlin-tempest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (48 loc) · 1.77 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]
minversion = 2.0
envlist = py35,py27,pep8,api,functional
skipsdist = True
[testenv]
deps = -r{toxinidir}/test-requirements.txt
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
commands =
find . -type f -name "*.py[c|o]" -delete
ostestr --slowest --regex 'senlin_tempest_plugin.api.*' {posargs}
whitelist_externals = find
[testenv:api]
basepython = python3.5
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
OS_TEST_PATH=senlin_tempest_plugin/api
commands =
find . -type f -name "*.py[c|o]" -delete
ostestr --slowest --regex 'senlin_tempest_plugin.functional.*' {posargs}
[testenv:functional]
basepython = python3.5
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
OS_TEST_PATH=senlin_tempest_plugin/functional
# By default ostestr will set concurrency to ncpu, to specify something else
# use the concurrency=<n> option.
# e.g.: 'tox -efunctional -- --concurrency=4'
commands =
find . -type f -name "*.py[c|o]" -delete
ostestr --slowest {posargs}
whitelist_externals = find
[testenv:pep8]
commands =
flake8 senlin_tempest_plugin
[testenv:venv]
commands = {posargs}
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
# Temporarily disable complaints about docstring for public module/class/method
# H106 Don’t put vim configuration in source files
# H203 Use assertIs(Not)None to check for None
ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D300,D301,D400,D401
enable-extensions=H106,H203
show-source = true
exclude=.venv,.git,.tox,*lib/python*,*egg,tools,build,releasenotes
max-complexity=10