blob: d34a7453a4e2b453034a5c95fb9422e0463083c1 [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
Monty Taylorbc758832013-06-17 17:22:42 -04008 VIRTUAL_ENV={envdir}
Monty Taylor49983152013-06-02 08:42:01 -04009deps = -r{toxinidir}/requirements.txt
10 -r{toxinidir}/test-requirements.txt
Monty Taylorbc758832013-06-17 17:22:42 -040011commands =
12 python setup.py testr --slowest --testr-args='{posargs}'
James E. Blair1e8dd892012-05-30 09:15:05 -070013
James E. Blaircdd00072012-06-08 19:17:28 -070014[tox:jenkins]
15downloadcache = ~/cache/pip
16
James E. Blair1e8dd892012-05-30 09:15:05 -070017[testenv:pep8]
Monty Taylor6bef8ef2013-06-02 08:17:12 -040018commands = flake8
James E. Blaircdd00072012-06-08 19:17:28 -070019
20[testenv:cover]
Monty Taylorbc758832013-06-17 17:22:42 -040021commands =
22 python setup.py testr --coverage
James E. Blairff986a12012-05-30 14:56:51 -070023
24[testenv:pyflakes]
25deps = pyflakes
Monty Taylor49983152013-06-02 08:42:01 -040026 -r{toxinidir}/requirements.txt
Monty Taylor7df9e7f2012-11-25 12:12:28 -080027commands = pyflakes zuul setup.py
James E. Blaircdd00072012-06-08 19:17:28 -070028
29[testenv:venv]
30commands = {posargs}
James E. Blaircb462342013-01-15 10:03:53 -080031
32[testenv:validate-layout]
33commands = zuul-server -c etc/zuul.conf-sample -t -l {posargs}
Monty Taylor6bef8ef2013-06-02 08:17:12 -040034
35[flake8]
James E. Blair78e31b32013-07-09 09:11:34 -070036ignore = E123,E125,H
Monty Taylor6bef8ef2013-06-02 08:17:12 -040037show-source = True
38exclude = .venv,.tox,dist,doc,build,*.egg