File: tox.ini

package info (click to toggle)
python-subunit2sql 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,788 kB
  • sloc: python: 5,799; sh: 75; makefile: 28; sql: 12
file content (59 lines) | stat: -rw-r--r-- 1,704 bytes parent folder | download | duplicates (2)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[tox]
minversion = 1.6
envlist = py27,py35,py36,pep8
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install -U --force-reinstall {opts} {packages}
setenv =
    VIRTUAL_ENV={envdir}
    OS_STDOUT_CAPTURE=1
    OS_STDERR_CAPTURE=1
    OS_TEST_TIMEOUT=500
whitelist_externals = find
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands =
    find . -type f -name "*.pyc" -delete
    stestr run {posargs}
    stestr slowest

[testenv:pep8]
sitepackages = False
commands =
  flake8 {posargs}

[testenv:cover]
setenv =
    VIRTUAL_ENV={envdir}
    PYTHON=coverage run --source subunit2sql --parallel-mode
commands =
  stestr run {posargs}
  coverage combine
  coverage html -d cover

[testenv:venv]
commands = {posargs}

[testenv:docs]
commands = python setup.py build_sphinx


[flake8]
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# E123 skipped because it is ignored by default in the default pep8
# E129 skipped because it is too limiting when combined with other rules
# H305 skipped because it is inconsistent between python versions
# E711 skipped because sqlalchemy filter() requires using == instead of is
ignore = E125,E123,E129,H305,E711
exclude = .venv,.git,.tox,dist,doc,*egg,build,releasenotes

[testenv:generate_samples]
commands =
    oslo-config-generator --config-file config-generator/subunit2sql.conf
    oslo-config-generator --config-file config-generator/sql2subunit.conf
    oslo-config-generator --config-file config-generator/subunit2sql-db-manage.conf

[testenv:releasenotes]
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html