blob: af58709e07a1bb30b9240d069b4e8109fbd993c5 [file] [log] [blame]
James E. Blair1e8dd892012-05-30 09:15:05 -07001[tox]
James E. Blairb0fcae42012-07-17 11:12:10 -07002envlist = pep8, pyflakes, py27
3
4[testenv]
James E. Blairf62d4282012-12-31 17:01:50 -08005# Set STATSD env variables so that statsd code paths are tested.
6setenv = STATSD_HOST=localhost
7 STATSD_PORT=8125
James E. Blairb0fcae42012-07-17 11:12:10 -07008deps = -r{toxinidir}/tools/pip-requires
9 -r{toxinidir}/tools/test-requires
10commands = nosetests {posargs}
James E. Blair1e8dd892012-05-30 09:15:05 -070011
James E. Blaircdd00072012-06-08 19:17:28 -070012[tox:jenkins]
13downloadcache = ~/cache/pip
14
James E. Blair1e8dd892012-05-30 09:15:05 -070015[testenv:pep8]
Zhongyue Luo5d556072012-09-21 02:00:47 +090016deps = pep8==1.3.3
Clark Boylanc2592322013-02-20 17:12:28 -080017commands = pep8 --ignore=E125,E128 --repeat --show-source --exclude=.venv,.tox,dist,doc,build .
James E. Blaircdd00072012-06-08 19:17:28 -070018
19[testenv:cover]
20setenv = NOSE_WITH_COVERAGE=1
James E. Blairff986a12012-05-30 14:56:51 -070021
22[testenv:pyflakes]
23deps = pyflakes
Monty Taylor7df9e7f2012-11-25 12:12:28 -080024commands = pyflakes zuul setup.py
James E. Blaircdd00072012-06-08 19:17:28 -070025
26[testenv:venv]
27commands = {posargs}
James E. Blaircb462342013-01-15 10:03:53 -080028
29[testenv:validate-layout]
30commands = zuul-server -c etc/zuul.conf-sample -t -l {posargs}