blob: 06b37dfb74c7e7cdab142864d965f235b7cadf75 [file] [log] [blame]
James E. Blair1e8dd892012-05-30 09:15:05 -07001[tox]
zhaoxinyu363e5642013-09-18 16:05:24 -07002minversion = 1.6
James E. Blairb0fcae42012-07-17 11:12:10 -07003envlist = pep8, pyflakes, py27
4
5[testenv]
James E. Blairf62d4282012-12-31 17:01:50 -08006# Set STATSD env variables so that statsd code paths are tested.
7setenv = STATSD_HOST=localhost
8 STATSD_PORT=8125
Monty Taylorbc758832013-06-17 17:22:42 -04009 VIRTUAL_ENV={envdir}
zhaoxinyu363e5642013-09-18 16:05:24 -070010install_command = pip install {opts} {packages}
Monty Taylor49983152013-06-02 08:42:01 -040011deps = -r{toxinidir}/requirements.txt
12 -r{toxinidir}/test-requirements.txt
Monty Taylorbc758832013-06-17 17:22:42 -040013commands =
14 python setup.py testr --slowest --testr-args='{posargs}'
James E. Blair1e8dd892012-05-30 09:15:05 -070015
James E. Blaircdd00072012-06-08 19:17:28 -070016[tox:jenkins]
17downloadcache = ~/cache/pip
18
James E. Blair1e8dd892012-05-30 09:15:05 -070019[testenv:pep8]
Monty Taylor6bef8ef2013-06-02 08:17:12 -040020commands = flake8
James E. Blaircdd00072012-06-08 19:17:28 -070021
22[testenv:cover]
Monty Taylorbc758832013-06-17 17:22:42 -040023commands =
24 python setup.py testr --coverage
James E. Blairff986a12012-05-30 14:56:51 -070025
26[testenv:pyflakes]
27deps = pyflakes
Monty Taylor49983152013-06-02 08:42:01 -040028 -r{toxinidir}/requirements.txt
Monty Taylor7df9e7f2012-11-25 12:12:28 -080029commands = pyflakes zuul setup.py
James E. Blaircdd00072012-06-08 19:17:28 -070030
31[testenv:venv]
32commands = {posargs}
James E. Blaircb462342013-01-15 10:03:53 -080033
34[testenv:validate-layout]
35commands = zuul-server -c etc/zuul.conf-sample -t -l {posargs}
Monty Taylor6bef8ef2013-06-02 08:17:12 -040036
37[flake8]
Paul Belangerec49b4c2013-07-20 20:32:20 -040038ignore = E125,H
Monty Taylor6bef8ef2013-06-02 08:17:12 -040039show-source = True
40exclude = .venv,.tox,dist,doc,build,*.egg