[tox]
envlist = docs, py27, py27-integration, flake8

[testenv:py27]
sitepackages=True
deps=
  -r{toxinidir}/requirements.txt
  pytest
  mock
  fudge
  nose
  pytest-cov==1.6
  coverage==3.7.1

commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}

[testenv:py27-integration]
sitepackages=True
deps=
  -r{toxinidir}/requirements.txt
  pytest
  mock
  fudge
  nose
  pytest-cov==1.6
  coverage==3.7.1

commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology/test/integration teuthology/orchestra/test/integration}
basepython=python2.7

[testenv:flake8]
deps=
  flake8
commands=flake8 --select=F {posargs:teuthology scripts}

[testenv:docs]
basepython=python
changedir=docs
deps=sphinx
commands=
    sphinx-build -W -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html

[tox]
envlist = docs, py27, py27-integration, flake8

[testenv:py27]
sitepackages=True
deps=
  -r{toxinidir}/requirements.txt
  pytest
  mock
  fudge
  nose
  pytest-cov==1.6
  coverage==3.7.1

commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}

[testenv:py27-integration]
sitepackages=True
deps=
  -r{toxinidir}/requirements.txt
  pytest
  mock
  fudge
  nose
  pytest-cov==1.6
  coverage==3.7.1

commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology/test/integration teuthology/orchestra/test/integration}
basepython=python2.7

[testenv:flake8]
deps=
  flake8
commands=flake8 --select=F {posargs:teuthology scripts}

[testenv:docs]
basepython=python
changedir=docs
deps=sphinx
commands=
    sphinx-apidoc -f -o . ../teuthology ../teuthology/test ../teuthology/orchestra/test ../teuthology/task/test
    sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html

Add autogenerated API docs to Sphinx output
Add autogenerated API docs to Sphinx output

Also drop -W for now. We'll have to focus on PEP-257 stuff later.

Signed-off-by: Zack Cerza <d7cdf09fc0f0426e98c9978ee42da5d61fa54986@redhat.com>
