terracotta/tox.ini
Kevin_Zheng feaa33b8c4 Make changes for jenkins jobs
Change-Id: I769216fc1c11e2bad33437ed116d637bda94f201
2016-02-02 14:18:39 +08:00

35 lines
799 B
INI

[tox]
envlist = py27,py34,linters
minversion = 1.6
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
NOSE_OPENSTACK_COLOR=1
NOSE_OPENSTACK_RED=0.05
NOSE_OPENSTACK_YELLOW=0.025
NOSE_OPENSTACK_SHOW_ELAPSED=1
NOSE_OPENSTACK_STDOUT=1
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
nosetests -v {posargs}
whitelist_externals = *
[testenv:linters]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:linters]
commands = flake8
distribute = false
[flake8]
ignore = H703,H102,E265,E262,H233
show-source = true
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build,setup.py,tests/ci/*,scripts/*