2013-10-16 19:48:57 +01:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2016-05-31 11:36:23 -05:00
|
|
|
envlist = py35,py27,pep8
|
2013-10-16 19:48:57 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
2017-12-02 19:17:18 +01:00
|
|
|
install_command = pip install {opts} {packages}
|
2017-12-01 07:27:37 +01:00
|
|
|
deps =
|
|
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
|
|
-r{toxinidir}/requirements.txt
|
2013-10-16 19:48:57 +01:00
|
|
|
-r{toxinidir}/test-requirements.txt
|
2016-05-31 11:36:23 -05:00
|
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
2013-10-16 19:48:57 +01:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2015-09-15 14:07:45 -05:00
|
|
|
|
2016-02-11 12:29:36 -06:00
|
|
|
[testenv:pep8]
|
2017-09-20 12:33:06 +02:00
|
|
|
whitelist_externals =
|
2017-06-09 08:59:51 -06:00
|
|
|
bash
|
2016-11-07 07:59:03 -05:00
|
|
|
commands =
|
|
|
|
python ./tools/process-templates.py
|
2017-02-01 16:05:03 -05:00
|
|
|
python ./network/endpoints/build_endpoint_map.py --check
|
2016-11-07 07:59:03 -05:00
|
|
|
python ./tools/yaml-validate.py .
|
2017-06-09 08:59:51 -06:00
|
|
|
bash -c ./tools/roles-data-validation.sh
|
2017-09-07 15:25:11 -05:00
|
|
|
bash -c ./tools/check-up-to-date.sh
|
2016-11-07 07:45:15 -05:00
|
|
|
|
|
|
|
[testenv:templates]
|
2016-11-07 07:59:03 -05:00
|
|
|
commands = python ./tools/process-templates.py
|
2017-01-13 14:02:05 -05:00
|
|
|
|
2017-12-13 17:11:31 -06:00
|
|
|
[testenv:clean]
|
|
|
|
commands = python ./tools/process-templates.py -c
|
|
|
|
|
2017-01-13 14:02:05 -05:00
|
|
|
[testenv:releasenotes]
|
|
|
|
commands = bash -c tools/releasenotes_tox.sh
|
2016-05-31 11:36:23 -05:00
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py test --coverage --coverage-package-name=tripleo_heat_templates --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[testenv:genconfig]
|
|
|
|
commands =
|
|
|
|
python ./tools/process-templates.py
|
2016-05-31 11:47:10 -05:00
|
|
|
python ./tripleo_heat_templates/environment_generator.py sample-env-generator/
|
2017-06-09 08:59:51 -06:00
|
|
|
|
|
|
|
[testenv:genroledata]
|
2017-09-20 12:33:06 +02:00
|
|
|
whitelist_externals =
|
2017-06-09 08:59:51 -06:00
|
|
|
bash
|
|
|
|
commands =
|
|
|
|
bash -c tools/roles-data-generate-samples.sh
|
2018-03-22 19:02:47 -04:00
|
|
|
|
|
|
|
[testenv:lower-constraints]
|
|
|
|
basepython = python3
|
|
|
|
deps =
|
|
|
|
-c{toxinidir}/lower-constraints.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
-r{toxinidir}/requirements.txt
|