
To get a better API spec, this patch is following the OpenStack community way to describe API ref. Only /products endpoint is included, costs and usage endpoint will be added in following patches. Implement blueprint: api-ref Change-Id: Icaa121c4257fcc27df93e63ec8c2bb095ac41c43
65 lines
1.8 KiB
INI
65 lines
1.8 KiB
INI
[tox]
|
|
envlist = py35,py27,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
DISTIL_TESTS_CONFIGS_DIR={toxinidir}/distil/tests/etc/
|
|
DISCOVER_DIRECTORY=distil/tests/unit
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python setup.py testr --slowest --testr-args="{posargs}"
|
|
whitelist_externals =
|
|
bash
|
|
rm
|
|
find
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:api-ref]
|
|
# This environment is called from CI scripts to test and publish
|
|
# the API Ref to developer.openstack.org.
|
|
#
|
|
whitelist_externals = bash
|
|
rm
|
|
commands =
|
|
rm -rf api-ref/build
|
|
sphinx-build -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
|
[testenv:pylint]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands = bash tools/lintstack.sh
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:genconfig]
|
|
commands =
|
|
oslo-config-generator --config-file etc/os-config-generator/distil.conf --output-file etc/distil.conf.sample
|
|
|
|
[flake8]
|
|
ignore = F401,H302,H305,H306,H307,H404,H405
|
|
show-source = true
|
|
builtins = _
|
|
exclude= .venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,*distil/transformer*,*distil/interface*,*distil/NoPickle*,*distil/database*,*distil/helpers*,*distil/rates*,*distil/api/helpers*,*distil/api/web*,*bin*,*odoo/odoo*,*build/lib*,*bin/web*,*distil/tests*,*distil/web*,*client/shell.py,*client/client.py,*distil/models*
|