James E. Blair | 1e8dd89 | 2012-05-30 09:15:05 -0700 | [diff] [blame] | 1 | [tox] |
James E. Blair | b0fcae4 | 2012-07-17 11:12:10 -0700 | [diff] [blame] | 2 | envlist = pep8, pyflakes, py27 |
| 3 | |
| 4 | [testenv] |
James E. Blair | f62d428 | 2012-12-31 17:01:50 -0800 | [diff] [blame] | 5 | # Set STATSD env variables so that statsd code paths are tested. |
| 6 | setenv = STATSD_HOST=localhost |
| 7 | STATSD_PORT=8125 |
James E. Blair | b0fcae4 | 2012-07-17 11:12:10 -0700 | [diff] [blame] | 8 | deps = -r{toxinidir}/tools/pip-requires |
| 9 | -r{toxinidir}/tools/test-requires |
James E. Blair | 1f4c2bb | 2013-04-26 08:40:46 -0700 | [diff] [blame] | 10 | commands = nosetests --logging-format="%(asctime)s %(name)-32s %(levelname)-8s %(message)s" {posargs} |
James E. Blair | 1e8dd89 | 2012-05-30 09:15:05 -0700 | [diff] [blame] | 11 | |
James E. Blair | cdd0007 | 2012-06-08 19:17:28 -0700 | [diff] [blame] | 12 | [tox:jenkins] |
| 13 | downloadcache = ~/cache/pip |
| 14 | |
James E. Blair | 1e8dd89 | 2012-05-30 09:15:05 -0700 | [diff] [blame] | 15 | [testenv:pep8] |
Zhongyue Luo | 5d55607 | 2012-09-21 02:00:47 +0900 | [diff] [blame] | 16 | deps = pep8==1.3.3 |
James E. Blair | 1f4c2bb | 2013-04-26 08:40:46 -0700 | [diff] [blame] | 17 | -r{toxinidir}/tools/pip-requires |
James E. Blair | 88dd510 | 2013-05-08 13:32:10 -0700 | [diff] [blame] | 18 | commands = pep8 --ignore=E123,E125,E128 --repeat --show-source --exclude=.venv,.tox,dist,doc,build . |
James E. Blair | cdd0007 | 2012-06-08 19:17:28 -0700 | [diff] [blame] | 19 | |
| 20 | [testenv:cover] |
| 21 | setenv = NOSE_WITH_COVERAGE=1 |
James E. Blair | ff986a1 | 2012-05-30 14:56:51 -0700 | [diff] [blame] | 22 | |
| 23 | [testenv:pyflakes] |
| 24 | deps = pyflakes |
James E. Blair | 1f4c2bb | 2013-04-26 08:40:46 -0700 | [diff] [blame] | 25 | -r{toxinidir}/tools/pip-requires |
Monty Taylor | 7df9e7f | 2012-11-25 12:12:28 -0800 | [diff] [blame] | 26 | commands = pyflakes zuul setup.py |
James E. Blair | cdd0007 | 2012-06-08 19:17:28 -0700 | [diff] [blame] | 27 | |
| 28 | [testenv:venv] |
| 29 | commands = {posargs} |
James E. Blair | cb46234 | 2013-01-15 10:03:53 -0800 | [diff] [blame] | 30 | |
| 31 | [testenv:validate-layout] |
| 32 | commands = zuul-server -c etc/zuul.conf-sample -t -l {posargs} |