Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 1 | [tox] |
| 2 | envlist = pep8 |
| 3 | |
| 4 | [testenv] |
| 5 | setenv = VIRTUAL_ENV={envdir} |
| 6 | NOSE_WITH_OPENSTACK=1 |
| 7 | NOSE_OPENSTACK_COLOR=1 |
| 8 | NOSE_OPENSTACK_RED=15 |
| 9 | NOSE_OPENSTACK_YELLOW=3 |
| 10 | NOSE_OPENSTACK_SHOW_ELAPSED=1 |
| 11 | NOSE_OPENSTACK_STDOUT=1 |
| 12 | deps = -r{toxinidir}/tools/pip-requires |
| 13 | -r{toxinidir}/tools/test-requires |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame^] | 14 | |
| 15 | [testenv:full] |
| 16 | sitepackages = True |
| 17 | setenv = VIRTUAL_ENV={envdir} |
| 18 | NOSE_WITH_OPENSTACK=1 |
| 19 | NOSE_OPENSTACK_COLOR=1 |
| 20 | NOSE_OPENSTACK_RED=15 |
| 21 | NOSE_OPENSTACK_YELLOW=3 |
| 22 | NOSE_OPENSTACK_SHOW_ELAPSED=1 |
| 23 | NOSE_OPENSTACK_STDOUT=1 |
| 24 | commands = |
| 25 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest |
| 26 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-cli.xml -sv cli |
| 27 | |
| 28 | [testenv:smoke] |
| 29 | sitepackages = True |
| 30 | setenv = VIRTUAL_ENV={envdir} |
| 31 | NOSE_WITH_OPENSTACK=1 |
| 32 | NOSE_OPENSTACK_COLOR=1 |
| 33 | NOSE_OPENSTACK_RED=15 |
| 34 | NOSE_OPENSTACK_YELLOW=3 |
| 35 | NOSE_OPENSTACK_SHOW_ELAPSED=1 |
| 36 | NOSE_OPENSTACK_STDOUT=1 |
| 37 | commands = |
| 38 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest |
| 39 | |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 40 | |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 41 | [testenv:coverage] |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame^] | 42 | sitepackages = True |
| 43 | setenv = VIRTUAL_ENV={envdir} |
| 44 | NOSE_WITH_OPENSTACK=1 |
| 45 | NOSE_OPENSTACK_COLOR=1 |
| 46 | NOSE_OPENSTACK_RED=15 |
| 47 | NOSE_OPENSTACK_YELLOW=3 |
| 48 | NOSE_OPENSTACK_SHOW_ELAPSED=1 |
| 49 | NOSE_OPENSTACK_STDOUT=1 |
| 50 | commands = |
| 51 | python -m tools/tempest_coverage -c start --combine |
| 52 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest |
| 53 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-cli.xml -sv cli |
| 54 | python -m tools/tempest_coverage -c report --html |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 55 | |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 56 | [testenv:pep8] |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 57 | commands = flake8 |
| 58 | |
| 59 | [flake8] |
| 60 | ignore = E125,H302,H404 |
| 61 | show-source = True |
| 62 | exclude = .git,.venv,.tox,dist,doc,openstack,*egg |