blob: dea7c5761c512a998d33fabb92dc84f1683b3ef6 [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]
Monty Taylor6bef8ef2013-06-02 08:17:12 -040016commands = flake8
James E. Blaircdd00072012-06-08 19:17:28 -070017
18[testenv:cover]
19setenv = NOSE_WITH_COVERAGE=1
James E. Blairff986a12012-05-30 14:56:51 -070020
21[testenv:pyflakes]
22deps = pyflakes
James E. Blair1f4c2bb2013-04-26 08:40:46 -070023 -r{toxinidir}/tools/pip-requires
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}
Monty Taylor6bef8ef2013-06-02 08:17:12 -040031
32[flake8]
33ignore = E123,E125,E128,H
34show-source = True
35exclude = .venv,.tox,dist,doc,build,*.egg