blob: 153ebbfdcd62c20485122a204db2e786e52b4db5 [file] [log] [blame]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01001[tox]
Dina Saparbaeva02bd40a2021-02-11 22:51:37 +06002minversion = 3.1.1
Goutham Pacha Ravieff4f9b2019-10-24 22:22:28 -07003envlist = py3,pypy,pep8
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01004skipsdist = True
5
6[testenv]
Goutham Pacha Ravieff4f9b2019-10-24 22:22:28 -07007basepython = python3
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01008usedevelop = True
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01009setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
12 OS_STDOUT_CAPTURE=1
13 OS_STDERR_CAPTURE=1
14 OS_TEST_TIMEOUT=60
Goutham Pacha Raviabb4a8f2020-04-22 18:24:16 -070015deps =
wu.shiminga5c2b7d2020-12-14 17:59:28 +080016 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
Goutham Pacha Raviabb4a8f2020-04-22 18:24:16 -070017 -r{toxinidir}/requirements.txt
18 -r{toxinidir}/test-requirements.txt
19
Raissa Sarmento80f5fbf2017-10-16 14:38:36 +010020# commands = python setup.py test --slowest --testr-args='{posargs}'
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010021
22[testenv:pep8]
lkuchlan88452b32020-02-20 11:52:48 +020023commands =
24 flake8 {posargs}
25 check-uuid --package manila_tempest_tests
26
27[testenv:uuidgen]
28commands = check-uuid --fix --package manila_tempest_tests
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010029
30[testenv:venv]
31commands = {posargs}
32
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010033[testenv:docs]
Hervé Beraud8cce66b2021-01-07 12:54:11 +010034deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
35 -r{toxinidir}/doc/requirements.txt
Andreas Jaegera3fef5c2020-04-23 10:00:19 +020036commands = sphinx-build -W -b html doc/source doc/build/html
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010037
38[testenv:releasenotes]
Hervé Beraud8cce66b2021-01-07 12:54:11 +010039deps = {[testenv:docs]deps}
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010040commands =
41 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
42
43[testenv:debug]
44commands = oslo_debug_helper {posargs}
45
46[flake8]
47# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020048# W503 line break before binary operator
49# W504 line break after binary operator
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010050show-source = True
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020051ignore = E123,E125,W503,W504
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010052builtins = _
53exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
lkuchlan1d1461d2020-08-04 11:19:11 +030054import-order-style = pep8
55application-import-names = manila_tempest_tests