[tox]
envlist = py27,py33,pep8,func

[testenv]
usedevelop = True
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
    -r{toxinidir}/plugin-requirements.txt
commands =
    coverage run --branch --include "ironic_discoverd*" -m unittest discover ironic_discoverd.test
    coverage report -m --fail-under 90
setenv = PYTHONDONTWRITEBYTECODE=1

[testenv:pep8]
basepython = python2.7
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
    -r{toxinidir}/plugin-requirements.txt
commands =
    flake8 ironic_discoverd
    doc8 README.rst CONTRIBUTING.rst

[flake8]
max-complexity=15

[hacking]
import_exceptions = ironicclient.exceptions,ironic_discoverd.common.i18n

[testenv:func]
basepython = python2.7
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
    -r{toxinidir}/plugin-requirements.txt
commands =
    python functest/run.py

[tox]
envlist = py27,py34,pep8,func

[testenv]
usedevelop = True
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
    -r{toxinidir}/plugin-requirements.txt
commands =
    coverage run --branch --include "ironic_discoverd*" -m unittest discover ironic_discoverd.test
    coverage report -m --fail-under 90
setenv = PYTHONDONTWRITEBYTECODE=1

[testenv:pep8]
basepython = python2.7
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
    -r{toxinidir}/plugin-requirements.txt
commands =
    flake8 ironic_discoverd
    doc8 README.rst CONTRIBUTING.rst

[flake8]
max-complexity=15

[hacking]
import_exceptions = ironicclient.exceptions,ironic_discoverd.common.i18n

[testenv:func]
basepython = python2.7
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
    -r{toxinidir}/plugin-requirements.txt
commands =
    python functest/run.py

Switch to Python 3.4 as default Python 3 env
Switch to Python 3.4 as default Python 3 env

Change-Id: If0a0fc4c121d0a7ce5422d329b9b276cfc28dba1
