James E. Blair | 1e8dd89 | 2012-05-30 09:15:05 -0700 | [diff] [blame] | 1 | [tox] |
zhaoxinyu | 363e564 | 2013-09-18 16:05:24 -0700 | [diff] [blame^] | 2 | minversion = 1.6 |
James E. Blair | b0fcae4 | 2012-07-17 11:12:10 -0700 | [diff] [blame] | 3 | envlist = pep8, pyflakes, py27 |
| 4 | |
| 5 | [testenv] |
James E. Blair | f62d428 | 2012-12-31 17:01:50 -0800 | [diff] [blame] | 6 | # Set STATSD env variables so that statsd code paths are tested. |
| 7 | setenv = STATSD_HOST=localhost |
| 8 | STATSD_PORT=8125 |
Monty Taylor | bc75883 | 2013-06-17 17:22:42 -0400 | [diff] [blame] | 9 | VIRTUAL_ENV={envdir} |
zhaoxinyu | 363e564 | 2013-09-18 16:05:24 -0700 | [diff] [blame^] | 10 | install_command = pip install {opts} {packages} |
Monty Taylor | 4998315 | 2013-06-02 08:42:01 -0400 | [diff] [blame] | 11 | deps = -r{toxinidir}/requirements.txt |
| 12 | -r{toxinidir}/test-requirements.txt |
Monty Taylor | bc75883 | 2013-06-17 17:22:42 -0400 | [diff] [blame] | 13 | commands = |
| 14 | python setup.py testr --slowest --testr-args='{posargs}' |
James E. Blair | 1e8dd89 | 2012-05-30 09:15:05 -0700 | [diff] [blame] | 15 | |
James E. Blair | cdd0007 | 2012-06-08 19:17:28 -0700 | [diff] [blame] | 16 | [tox:jenkins] |
| 17 | downloadcache = ~/cache/pip |
| 18 | |
James E. Blair | 1e8dd89 | 2012-05-30 09:15:05 -0700 | [diff] [blame] | 19 | [testenv:pep8] |
Monty Taylor | 6bef8ef | 2013-06-02 08:17:12 -0400 | [diff] [blame] | 20 | commands = flake8 |
James E. Blair | cdd0007 | 2012-06-08 19:17:28 -0700 | [diff] [blame] | 21 | |
| 22 | [testenv:cover] |
Monty Taylor | bc75883 | 2013-06-17 17:22:42 -0400 | [diff] [blame] | 23 | commands = |
| 24 | python setup.py testr --coverage |
James E. Blair | ff986a1 | 2012-05-30 14:56:51 -0700 | [diff] [blame] | 25 | |
| 26 | [testenv:pyflakes] |
| 27 | deps = pyflakes |
Monty Taylor | 4998315 | 2013-06-02 08:42:01 -0400 | [diff] [blame] | 28 | -r{toxinidir}/requirements.txt |
Monty Taylor | 7df9e7f | 2012-11-25 12:12:28 -0800 | [diff] [blame] | 29 | commands = pyflakes zuul setup.py |
James E. Blair | cdd0007 | 2012-06-08 19:17:28 -0700 | [diff] [blame] | 30 | |
| 31 | [testenv:venv] |
| 32 | commands = {posargs} |
James E. Blair | cb46234 | 2013-01-15 10:03:53 -0800 | [diff] [blame] | 33 | |
| 34 | [testenv:validate-layout] |
| 35 | commands = zuul-server -c etc/zuul.conf-sample -t -l {posargs} |
Monty Taylor | 6bef8ef | 2013-06-02 08:17:12 -0400 | [diff] [blame] | 36 | |
| 37 | [flake8] |
Paul Belanger | ec49b4c | 2013-07-20 20:32:20 -0400 | [diff] [blame] | 38 | ignore = E125,H |
Monty Taylor | 6bef8ef | 2013-06-02 08:17:12 -0400 | [diff] [blame] | 39 | show-source = True |
| 40 | exclude = .venv,.tox,dist,doc,build,*.egg |