blob: d716bb7157bd3d145986b0399abe9db3a00970f8 [file] [log] [blame]
James E. Blair1e8dd892012-05-30 09:15:05 -07001[tox]
zhaoxinyu363e5642013-09-18 16:05:24 -07002minversion = 1.6
Monty Taylor5f2feaf2013-09-19 07:47:01 -07003skipsdist = True
4envlist = pep8, py27
James E. Blairb0fcae42012-07-17 11:12:10 -07005
6[testenv]
James E. Blairf62d4282012-12-31 17:01:50 -08007# Set STATSD env variables so that statsd code paths are tested.
8setenv = STATSD_HOST=localhost
9 STATSD_PORT=8125
Monty Taylorbc758832013-06-17 17:22:42 -040010 VIRTUAL_ENV={envdir}
James E. Blaird0e579a2013-12-23 15:41:23 -080011 OS_TEST_TIMEOUT=30
Monty Taylor5f2feaf2013-09-19 07:47:01 -070012usedevelop = True
zhaoxinyu363e5642013-09-18 16:05:24 -070013install_command = pip install {opts} {packages}
Monty Taylor49983152013-06-02 08:42:01 -040014deps = -r{toxinidir}/requirements.txt
15 -r{toxinidir}/test-requirements.txt
Monty Taylorbc758832013-06-17 17:22:42 -040016commands =
17 python setup.py testr --slowest --testr-args='{posargs}'
James E. Blair1e8dd892012-05-30 09:15:05 -070018
James E. Blaircdd00072012-06-08 19:17:28 -070019[tox:jenkins]
20downloadcache = ~/cache/pip
21
James E. Blair1e8dd892012-05-30 09:15:05 -070022[testenv:pep8]
Joshua Hesketh29d99b72014-08-19 16:27:42 +100023commands = flake8 {posargs}
James E. Blaircdd00072012-06-08 19:17:28 -070024
25[testenv:cover]
Monty Taylorbc758832013-06-17 17:22:42 -040026commands =
27 python setup.py testr --coverage
James E. Blairff986a12012-05-30 14:56:51 -070028
Monty Taylorffd90ea2014-09-08 13:47:38 -070029[testenv:docs]
Antoine Mussod70f3d82014-01-10 16:36:44 +010030commands = python setup.py build_sphinx
31
James E. Blaircdd00072012-06-08 19:17:28 -070032[testenv:venv]
33commands = {posargs}
James E. Blaircb462342013-01-15 10:03:53 -080034
35[testenv:validate-layout]
36commands = zuul-server -c etc/zuul.conf-sample -t -l {posargs}
Monty Taylor6bef8ef2013-06-02 08:17:12 -040037
38[flake8]
Joshua Hesketh29d99b72014-08-19 16:27:42 +100039# These are ignored intentionally in openstack-infra projects;
40# please don't submit patches that solely correct them or enable them.
41ignore = E125,E129,H
Monty Taylor6bef8ef2013-06-02 08:17:12 -040042show-source = True
43exclude = .venv,.tox,dist,doc,build,*.egg