project-config/tox.ini
Doug Hellmann 3c2ca5a922 Add jenkins-project to the default env list
Add jenkins-project to the list of envs used when "tox" is run locally
without arguments. This should make it easier for someone working on a
change to test locally before submitting the patch.

Change-Id: I5f2732daa2509ff378429959bd15d0f2f7f98692
2014-10-20 19:32:53 +00:00

61 lines
1.2 KiB
INI

[tox]
minversion = 1.6
envlist = pep8,projects,jjb,jenkins-project
skipsdist = True
[testenv]
deps = -r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8
[testenv:projects]
deps = PyYAML
commands =
{toxinidir}/tools/check_upstream_url_scheme.py gerrit/projects.yaml
{toxinidir}/tools/check_projects_yaml_alphabetized.sh gerrit/projects.yaml
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:irc]
deps = PyYAML
irc
commands = python tools/check_irc_access.py -l accessbot/channels.yaml openstackinfra
[flake8]
show-source = True
exclude = .tox,.test
ignore = E125,H
select = H231
[testenv:jjb]
basepython = python2.7
deps = jenkins-job-builder
whitelist_externals =
mkdir
rm
commands =
rm -rf {envdir}/tmp
mkdir -p {envdir}/tmp
jenkins-jobs -l debug test -o {envdir}/tmp jenkins/jobs
[testenv:jenkins-project]
basepython = python2.7
deps =
commands =
{toxinidir}/tools/jenkins-projects-checks.py
[testenv:zuul]
basepython = python2.7
deps =
commands =
{toxinidir}/tools/run-layout.sh
{toxinidir}/tools/layout-checks.py
[testenv:bashate]
commands = {toxinidir}/tools/run-bashate.sh