system-config/tox.ini
Doug Hellmann 3fa3be7ede Add check job for upstream URLs on imported repos
Add a check job to require upstream URLs to use a scheme
that we are confident won't cause connection errors during
the import.

Add a tox configuration for this new job, as well as the
existing alphabetical check script, to make it easier
for developers to run those tests locally just by running
"tox".

Change-Id: I894ac0f8afb234404bb6e80e64b90aa25e052f10
2014-05-06 12:03:16 -07:00

42 lines
980 B
INI

[tox]
minversion = 1.6
envlist = pep8,upstream,projects_alphabetized
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8
[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
[testenv:venv]
commands = {posargs}
[testenv:irc]
deps = PyYAML
irc
commands = python modules/accessbot/files/checkaccess.py -l modules/openstack_project/files/accessbot/channels.yaml openstackinfra
[flake8]
show-source = True
exclude = .tox
ignore = E125,H
[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