2012-06-11 11:07:14 +01:00
|
|
|
[tox]
|
2013-09-17 16:34:21 +00:00
|
|
|
minversion = 1.6
|
2014-05-06 11:11:22 -07:00
|
|
|
envlist = pep8,upstream,projects_alphabetized
|
2013-09-19 07:57:23 -07:00
|
|
|
skipsdist = True
|
2012-06-11 11:07:14 +01:00
|
|
|
|
2013-09-17 16:34:21 +00:00
|
|
|
[testenv]
|
2013-09-19 07:57:23 -07:00
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install {opts} {packages}
|
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
2013-09-17 16:34:21 +00:00
|
|
|
|
2012-06-15 23:25:59 -07:00
|
|
|
[testenv:pep8]
|
2013-09-19 07:57:23 -07:00
|
|
|
commands = flake8
|
2012-09-26 13:39:31 -07:00
|
|
|
|
2014-05-06 11:11:22 -07:00
|
|
|
[testenv:upstream]
|
|
|
|
deps = PyYAML
|
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/check_upstream_url_scheme.py -v modules/openstack_project/files/review.projects.yaml
|
|
|
|
|
|
|
|
[testenv:projects_alphabetized]
|
|
|
|
commands = {toxinidir}/tools/check_projects_yaml_alphabetized.sh
|
|
|
|
|
2012-09-26 13:39:31 -07:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2013-09-19 07:57:23 -07:00
|
|
|
|
2014-03-04 17:30:58 -08:00
|
|
|
[testenv:irc]
|
|
|
|
deps = PyYAML
|
|
|
|
irc
|
2014-03-05 16:46:44 -08:00
|
|
|
commands = python modules/accessbot/files/checkaccess.py -l modules/openstack_project/files/accessbot/channels.yaml openstackinfra
|
2014-03-04 17:30:58 -08:00
|
|
|
|
2013-09-19 07:57:23 -07:00
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2013-09-20 14:58:20 -07:00
|
|
|
exclude = .tox
|
2013-09-19 07:57:23 -07:00
|
|
|
ignore = E125,H
|
2014-05-29 23:48:56 +02:00
|
|
|
select = H231
|
2014-03-28 08:02:39 -07:00
|
|
|
|
|
|
|
[testenv:jjb]
|
|
|
|
basepython = python2.7
|
|
|
|
deps = jenkins-job-builder
|
|
|
|
commands =
|
|
|
|
rm -rf {envdir}/tmp
|
|
|
|
mkdir -p {envdir}/tmp
|
|
|
|
jenkins-jobs -l debug test -o {envdir}/tmp modules/openstack_project/files/jenkins_job_builder/config
|
2014-05-27 07:37:08 -07:00
|
|
|
|
|
|
|
[testenv:zuul]
|
|
|
|
basepython = python2.7
|
|
|
|
deps =
|
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/check_projects_yaml_alphabetized.sh
|
|
|
|
{toxinidir}/tools/run-layout.sh openstack-infra config
|
|
|
|
|