cloud-init/tox.ini
malei d0f880277b Put py34 first in the env order of tox
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then, run
py27. This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.

Change-Id: I50f894062cf681a44fe7da2342a74b31898f47e8
2015-10-19 03:26:29 +08:00

49 lines
1.4 KiB
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = py34, py27, docs, pep8, py34-coverage, py27-coverage
[testenv]
usedevelop = True
# LC_ALL see https://github.com/gabrielfalcao/HTTPretty/issues/223
setenv = VIRTUAL_ENV={envdir}
LC_ALL = en_US.utf-8
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = {envpython} {toxinidir}/tools/noproxy nosetests {posargs}
# tox uses '--pre' by default to pip install. We don't want that, and
# 'pip_pre=False' isn't available until tox version 1.9.
install_command = pip install {opts} {packages}
[testenv:py26]
deps = {[testenv]deps}
importlib
logutils
[testenv:py27-coverage]
commands = {envpython} {toxinidir}/tools/noproxy nosetests --with-coverage --cover-erase --cover-package=cloudinit --cover-min-percentage=90 --cover-html {posargs}
[testenv:py34-coverage]
commands = {envpython} {toxinidir}/tools/noproxy nosetests --with-coverage --cover-erase --cover-package=cloudinit --cover-min-percentage=90 --cover-html {posargs}
[testenv:pep8]
commands = flake8 {posargs}
[testenv:docs]
whitelist_externals = git
commands =
git clean -fx doc/source/api
python setup.py build_sphinx
doc8 doc/source
[testenv:venv]
commands = {posargs}
[flake8]
builtins = _
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject
# TODO(harlowja): fix these up...
ignore = H102,H104,H105