summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 4b03cff501baef6c424b82125e6be0f59d7d4a80 (plain)
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
[tox]
skip_missing_interpreters = true
envlist =
    py36,py37,py38,py39,
    coverage,
    docs

[testenv]
setenv =
    LC_ALL=C
    LANG=C
    COVERAGE_FILE=.coverage.{envname}
extras =
    tests
commands =
    python --version
    pip freeze
    coverage run {envbindir}/pytest -xv []
    coverage report --show-missing

[testenv:coverage]
skip_install = true
deps =
    coverage
setenv =
    COVERAGE_FILE=.coverage
commands =
    coverage combine
    coverage xml
    coverage report --show-missing --fail-under=100

[testenv:docs]
basepython = python3.9
whitelist_externals = make
commands =
    make -C docs html BUILDDIR={envdir} "SPHINXOPTS=-W -E"
extras =
    docs