2012-05-08 17:39:08 -04:00
|
|
|
[tox]
|
2016-07-14 08:48:52 +08:00
|
|
|
envlist = py35,py34,py27,pep8
|
2013-12-09 13:53:45 +01:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2012-05-08 17:39:08 -04:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2016-07-28 22:00:29 +00:00
|
|
|
OS_TEST_PATH=heat/tests
|
|
|
|
TESTR_START_DIR=heat/tests
|
2013-12-09 13:53:45 +01:00
|
|
|
usedevelop = True
|
2016-07-27 14:07:00 +08:00
|
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
2013-05-15 21:48:36 -07:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2013-04-24 20:07:37 -07:00
|
|
|
commands =
|
2014-12-10 21:04:01 +02:00
|
|
|
find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.pyc' -delete
|
2016-07-28 22:00:29 +00:00
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
2013-09-09 18:02:49 -05:00
|
|
|
|
2014-12-10 21:04:01 +02:00
|
|
|
whitelist_externals =
|
|
|
|
bash
|
|
|
|
find
|
2016-01-13 18:06:07 +08:00
|
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
2014-03-31 21:39:28 +02:00
|
|
|
|
2014-12-25 17:35:26 +02:00
|
|
|
[testenv:py27log]
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
2015-05-28 16:01:07 +03:00
|
|
|
bash tools/pretty_tox.sh '^(?!heat_integrationtests){posargs}'
|
2014-12-25 17:35:26 +02:00
|
|
|
|
2014-08-25 10:37:27 +12:00
|
|
|
[testenv:integration]
|
2015-03-31 07:25:28 +00:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2015-08-03 11:00:22 +12:00
|
|
|
OS_TEST_PATH=./heat_integrationtests
|
2015-03-31 07:25:28 +00:00
|
|
|
TESTR_START_DIR=heat_integrationtests
|
2015-05-14 16:50:59 +05:30
|
|
|
passenv = OS_*
|
2015-03-31 07:25:28 +00:00
|
|
|
usedevelop = False
|
2016-07-28 22:00:29 +00:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-08-25 10:37:20 +12:00
|
|
|
commands =
|
2015-08-03 11:00:22 +12:00
|
|
|
bash tools/pretty_tox.sh '{posargs}'
|
2014-08-25 10:37:20 +12:00
|
|
|
|
2012-05-08 17:39:08 -04:00
|
|
|
[testenv:pep8]
|
2013-07-10 16:01:00 +02:00
|
|
|
commands =
|
2015-08-25 11:18:05 +12:00
|
|
|
flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib heat_integrationtests doc/source
|
2016-02-18 12:50:29 +03:00
|
|
|
python tools/custom_guidelines.py --exclude heat/engine/resources/aws
|
2012-05-08 17:39:08 -04:00
|
|
|
|
|
|
|
[testenv:venv]
|
2016-07-27 14:07:00 +08:00
|
|
|
# Note: infra doesn't support to use of constraints for this target.
|
|
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
2012-05-08 17:39:08 -04:00
|
|
|
commands = {posargs}
|
|
|
|
|
2012-05-17 16:02:04 -04:00
|
|
|
[testenv:cover]
|
2016-07-27 14:07:00 +08:00
|
|
|
# Note: infra doesn't support to use of constraints for this target.
|
|
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
2013-04-24 20:07:37 -07:00
|
|
|
commands =
|
2014-12-10 10:44:44 +08:00
|
|
|
python setup.py testr --coverage --testr-args='^(?!heat_integrationtests){posargs}'
|
2013-05-11 14:26:42 -04:00
|
|
|
|
2013-08-23 12:09:58 +10:00
|
|
|
[testenv:docs]
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
sphinxcontrib-httpdomain
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2016-05-04 15:23:15 -04:00
|
|
|
[testenv:api-ref]
|
|
|
|
# This environment is called from CI scripts to test and publish
|
|
|
|
# the API Ref to developer.openstack.org.
|
|
|
|
#
|
|
|
|
# NOTE(sdague): this target does not use constraints because
|
|
|
|
# upstream infra does not yet support it. Once that's fixed, we can
|
|
|
|
# drop the install_command.
|
|
|
|
#
|
|
|
|
# we do not used -W here because we are doing some slightly tricky
|
|
|
|
# things to build a single page document, and as such, we are ok
|
|
|
|
# ignoring the duplicate stanzas warning.
|
|
|
|
whitelist_externals = bash
|
|
|
|
rm
|
|
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
|
|
commands =
|
|
|
|
rm -rf api-ref/build
|
|
|
|
sphinx-build -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
|
|
|
|
2014-10-14 21:17:52 +01:00
|
|
|
[testenv:genconfig]
|
2015-02-04 00:01:26 +05:30
|
|
|
commands =
|
|
|
|
oslo-config-generator --config-file=config-generator.conf
|
|
|
|
oslo-config-generator --config-file=heat_integrationtests/config-generator.conf
|
2014-10-14 21:17:52 +01:00
|
|
|
|
2015-07-07 18:14:15 -04:00
|
|
|
[testenv:bandit]
|
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
commands = bandit -c bandit.yaml -r heat -n5 -p heat_conservative
|
2015-04-23 14:57:28 +05:30
|
|
|
|
2013-05-11 14:26:42 -04:00
|
|
|
[flake8]
|
|
|
|
show-source = true
|
2016-02-01 19:54:24 +08:00
|
|
|
exclude=.*,dist,*openstack/common*,*lib/python*,*egg,build,*convergence/scenarios/*
|
2014-12-10 20:26:58 +08:00
|
|
|
max-complexity=20
|
2014-10-21 16:11:34 +08:00
|
|
|
|
|
|
|
[hacking]
|
|
|
|
import_exceptions = heat.common.i18n
|
2016-03-18 20:29:18 +08:00
|
|
|
local-check-factory = heat.hacking.checks.factory
|
2015-08-19 11:20:54 -04:00
|
|
|
|
|
|
|
[testenv:debug]
|
|
|
|
commands = oslo_debug_helper {posargs}
|
2015-11-25 20:43:50 +08:00
|
|
|
|
|
|
|
[testenv:releasenotes]
|
2016-07-27 14:07:00 +08:00
|
|
|
# Note: infra doesn't support to use of constraints for this target.
|
|
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
2015-11-25 20:43:50 +08:00
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
2016-06-03 17:50:26 +02:00
|
|
|
|
|
|
|
[testenv:install-guide]
|
|
|
|
# NOTE(jaegerandi): this target does not use constraints because
|
|
|
|
# upstream infra does not yet support it. Once that's fixed, we can
|
|
|
|
# drop the install_command.
|
|
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
|
|
commands = sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html
|