blob: 0d4969351f163bc70a9e091ff09ffc7793010edc [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
James E. Blair1f4c2bb2013-04-26 08:40:46 -070010commands = nosetests --logging-format="%(asctime)s %(name)-32s %(levelname)-8s %(message)s" {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
James E. Blair1f4c2bb2013-04-26 08:40:46 -070017 -r{toxinidir}/tools/pip-requires
James E. Blair88dd5102013-05-08 13:32:10 -070018commands = pep8 --ignore=E123,E125,E128 --repeat --show-source --exclude=.venv,.tox,dist,doc,build .
James E. Blaircdd00072012-06-08 19:17:28 -070019
20[testenv:cover]
21setenv = NOSE_WITH_COVERAGE=1
James E. Blairff986a12012-05-30 14:56:51 -070022
23[testenv:pyflakes]
24deps = pyflakes
James E. Blair1f4c2bb2013-04-26 08:40:46 -070025 -r{toxinidir}/tools/pip-requires
Monty Taylor7df9e7f2012-11-25 12:12:28 -080026commands = pyflakes zuul setup.py
James E. Blaircdd00072012-06-08 19:17:28 -070027
28[testenv:venv]
29commands = {posargs}
James E. Blaircb462342013-01-15 10:03:53 -080030
31[testenv:validate-layout]
32commands = zuul-server -c etc/zuul.conf-sample -t -l {posargs}