openstack-health/tox.ini
Masayuki Igawa 11590b64ad Add py35 to tox.ini envlist
This commit adds py35 to the tox.ini envlist. We should support not only
python 3.4 but also python 3.5. And this commit also fixes the envlist
order to avoid the testr execution error with dbm usage.

Change-Id: I9e48a66f47ad5f73c117e2d6ddb10ebd4b1e2bba
2017-02-09 08:15:58 +00:00

45 lines
1.2 KiB
INI

[tox]
envlist = py35,py34,py27,pep8,npm-test,npm-lint
minversion = 1.6
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
whitelist_externals = *
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
ostestr {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands =
python setup.py build_sphinx {posargs}
[testenv:pep8]
commands =
flake8 {toxinidir}/openstack_health {posargs}
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name='openstack_health' --testr-args={posargs}
[flake8]
# E125 is a won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved. For further detail see https://review.openstack.org/#/c/36788/
# E123 skipped because it is ignored by default in the default pep8
# E129 skipped because it is too limiting when combined with other rules
# Skipped because of new hacking 0.9: H405
ignore = E125,E123,E129,H404,H405
show-source = True
exclude = .git,.venv,.tox,dist,doc,openstack,*egg
[testenv:npm-test]
commands = npm test
[testenv:npm-lint]
commands = npm run lint --silent