[tox]
minversion = 1.6
envlist = pep8,upstream,projects_alphabetized
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
ignore = E125,H
select = H231

[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 jenkins/jobs

[testenv:zuul]
basepython = python2.7
deps =
commands =
  {toxinidir}/tools/check_projects_yaml_alphabetized.sh
  {toxinidir}/tools/run-layout.sh openstack-infra config

[testenv:bashate]
commands = bashate -v

[tox]
minversion = 1.6
envlist = pep8,projects,jjb
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
commands =
  rm -rf {envdir}/tmp
  mkdir -p {envdir}/tmp
  jenkins-jobs -l debug test -o {envdir}/tmp jenkins/jobs

[testenv:zuul]
basepython = python2.7
deps =
commands =
  {toxinidir}/tools/check_projects_yaml_alphabetized.sh jenkins/jobs/projects.yaml
  {toxinidir}/tools/run-layout.sh

[testenv:bashate]
commands = bashate -v

Fix up tests after repo reorganization
Fix up tests after repo reorganization

Fix the default tox configuration so it works properly if a developer
just runs "tox" on their local system by removing environments from the
default list that do not exist. Add the jjb environment to the list.

Add the missing argument to check_projects_yaml_alphabetized.sh and
remove the unused arguments from run-layout.sh.

Exclude the .test directory created by the zuul test environment from
the files checked by flake8.

Change-Id: I72cb9aa3908d16f9e5b6d6445b07819563ce9104
