cloudkitty/tox.ini
Stéphane Albert b542fda70d Removed configuration check from pep8 tests
Change-Id: Ie6b5c402b9f454f7a39c86863ef9ad3f0d8f4824
2014-11-26 11:05:26 +01:00

51 lines
1.1 KiB
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = py26,py27,py33,py34,pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --testr-args='{posargs}'
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
commands =
flake8 {posargs} cloudkitty
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage {posargs}
[testenv:checkconfig]
sitepackages = False
envdir = {toxworkdir}/venv
commands =
{toxinidir}/tools/config/check_uptodate.sh
[testenv:genconfig]
sitepackages = False
envdir = {toxworkdir}/venv
commands =
{toxinidir}/tools/config/generate_sample.sh -b . -p cloudkitty -o etc/cloudkitty
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:venv]
commands = {posargs}
[flake8]
exclude = .git,.venv,.tox,dist,doc,*egg,build,.ropeproject,./cloudkitty/openstack/common,*/alembic/versions/*
[hacking]
import_exceptions = cloudkitty.i18n