File: tox.ini

package info (click to toggle)
python-os-refresh-config 14.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 192 kB
  • sloc: python: 285; sh: 191; makefile: 18
file content (41 lines) | stat: -rw-r--r-- 874 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[tox]
minversion = 3.18.0
envlist = py3,pep8
skipsdist = false

[testenv]
deps =
  -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  -r{toxinidir}/requirements.txt
  -r{toxinidir}/test-requirements.txt
commands =
  stestr run --slowest {posargs}

[testenv:pep8]
commands = flake8

[testenv:cover]
setenv =
  PYTHON=coverage run --source os_refresh_config --parallel-mode
commands =
  stestr run {posargs}
  coverage combine
  coverage html -d cover
  coverage xml -o cover/coverage.xml

[testenv:venv]
commands = {posargs}

[testenv:functional]
setenv =
  OS_TEST_PATH=os_refresh_config/tests/functional
commands =
  stestr run --slowest {posargs}
  {toxinidir}/tools/tests/run_tests.sh {posargs}
allowlist_externals =
  {toxinidir}/tools/tests/run_tests.sh

[flake8]
ignore = E125
exclude = .venv,.tox,dist,doc,*.egg
show-source = true