[tox]
minversion = 1.6
envlist = py27
skipdist = True

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt

[testenv:linters]
whitelist_externals =
    {[testenv:jjb]whitelist_externals}
commands =
    {[testenv:jjb]commands}

# TODO(pabelanger): Replace this with linters entry point once we move to zuulv3
[testenv:jjb]
whitelist_externals =
  rm
  touch
commands =
  # NOTE(pabelanger): We create a dummy token to keep JJB happy.
  touch {toxinidir}/jenkins/jobs/weirdo_token
  jenkins-jobs test {toxinidir}/jenkins/jobs
  rm {toxinidir}/jenkins/jobs/weirdo_token

[tox]
minversion = 1.6
envlist = py27
skipdist = True

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt

[testenv:linters]
whitelist_externals =
    {[testenv:jjb]whitelist_externals}
commands =
    {[testenv:jjb]commands}

# TODO(pabelanger): Replace this with linters entry point once we move to zuulv3
[testenv:jjb]
whitelist_externals =
  rm
  touch
commands =
  # NOTE(pabelanger): We create a dummy token to keep JJB happy.
  touch {toxinidir}/jenkins/jobs/weirdo_token
  jenkins-jobs test {toxinidir}/jenkins/jobs
  rm {toxinidir}/jenkins/jobs/weirdo_token

[testenv:venv]
commands = {posargs}

Create venv entry point to run commands
Create venv entry point to run commands

This will give us a clean virutalenv with all dependencies.

Change-Id: If56c311dc05ace3e220cb27933575f4b0ec6228c
Signed-off-by: Paul Belanger <e7139c8e6c4ea75cc1c287ce081b2dc0f3ab39ec@redhat.com>
