blob: a92fdb245741b10d4ae9752b5c4bf58215332e5b [file] [log] [blame]
James E. Blair1e8dd892012-05-30 09:15:05 -07001[tox]
zhaoxinyu363e5642013-09-18 16:05:24 -07002minversion = 1.6
Monty Taylor5f2feaf2013-09-19 07:47:01 -07003skipsdist = True
4envlist = pep8, py27
James E. Blairb0fcae42012-07-17 11:12:10 -07005
6[testenv]
James E. Blairf62d4282012-12-31 17:01:50 -08007# Set STATSD env variables so that statsd code paths are tested.
8setenv = STATSD_HOST=localhost
9 STATSD_PORT=8125
Monty Taylorbc758832013-06-17 17:22:42 -040010 VIRTUAL_ENV={envdir}
Monty Taylor5f2feaf2013-09-19 07:47:01 -070011usedevelop = True
zhaoxinyu363e5642013-09-18 16:05:24 -070012install_command = pip install {opts} {packages}
Monty Taylor49983152013-06-02 08:42:01 -040013deps = -r{toxinidir}/requirements.txt
14 -r{toxinidir}/test-requirements.txt
Monty Taylorbc758832013-06-17 17:22:42 -040015commands =
16 python setup.py testr --slowest --testr-args='{posargs}'
James E. Blair1e8dd892012-05-30 09:15:05 -070017
James E. Blaircdd00072012-06-08 19:17:28 -070018[tox:jenkins]
19downloadcache = ~/cache/pip
20
James E. Blair1e8dd892012-05-30 09:15:05 -070021[testenv:pep8]
Monty Taylor6bef8ef2013-06-02 08:17:12 -040022commands = flake8
James E. Blaircdd00072012-06-08 19:17:28 -070023
24[testenv:cover]
Monty Taylorbc758832013-06-17 17:22:42 -040025commands =
26 python setup.py testr --coverage
James E. Blairff986a12012-05-30 14:56:51 -070027
James E. Blaircdd00072012-06-08 19:17:28 -070028[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}
Monty Taylor6bef8ef2013-06-02 08:17:12 -040033
34[flake8]
Paul Belangerec49b4c2013-07-20 20:32:20 -040035ignore = E125,H
Monty Taylor6bef8ef2013-06-02 08:17:12 -040036show-source = True
37exclude = .venv,.tox,dist,doc,build,*.egg