rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 1 | [tox] |
sandriichenko | 6fa7233 | 2018-02-26 12:17:57 +0200 | [diff] [blame] | 2 | envlist = pep8 |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 3 | minversion = 0.1 |
| 4 | skipsdist = True |
| 5 | |
| 6 | [testenv] |
| 7 | userdevelop = True |
| 8 | setenv = VIRTUAL_ENV={envdir} |
| 9 | deps = -r{toxinidir}/requirements.txt |
| 10 | -r{toxinidir}/test-requirements.txt |
Pavlo Shchelokovskyy | bdd7b28 | 2020-12-15 10:29:11 +0200 | [diff] [blame] | 11 | -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/rocky} |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 12 | commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi' |
| 13 | testr run {posargs} |
| 14 | |
| 15 | [testenv:pep8] |
ricolin | 9b02d1e | 2017-12-29 15:35:49 +0800 | [diff] [blame] | 16 | setenv = |
| 17 | PYTHONPATH = . |
| 18 | commands = |
| 19 | flake8 |
| 20 | check-uuid --package heat_tempest_plugin |
| 21 | |
| 22 | [testenv:uuidgen] |
| 23 | setenv = |
| 24 | PYTHONPATH = . |
| 25 | commands = |
| 26 | check-uuid --fix --package heat_tempest_plugin |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 27 | |
| 28 | [testenv:docs] |
| 29 | deps = -r{toxinidir}/requirements.txt |
| 30 | -r{toxinidir}/test-requirements.txt |
| 31 | sphinxcontrib-httpdomain |
| 32 | commands = python setup.py build_sphinx |
| 33 | |
| 34 | [testenv:venv] |
| 35 | commands = {posargs} |
| 36 | |
| 37 | [flake8] |
| 38 | show-source = True |
| 39 | builtins = _ |
| 40 | exclude=.venv,.git,.tox,*lib/python*,private,.eggs |