forked from jquast/telnetlib3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
69 lines (63 loc) · 2.25 KB
/
tox.ini
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
60
61
62
63
64
65
66
67
68
69
[tox]
envlist = py{35,36,37,38}, docs
skip_missing_interpreters = true
[testenv]
whitelist_externals = cp
deps = -rrequirements-tests.txt
install_command = pip install --upgrade {packages}
passenv = ASYNCIODEBUG
usedevelop = True
commands = {envbindir}/py.test \
{posargs:\
--color=yes \
--log-format='%(levelname)s %(relativeCreated)2.2f %(filename)s:%(lineno)d %(message)s' \
--cov={toxinidir}/telnetlib3 \
--cov-config={toxinidir}/.coveragerc \
--strict --verbose --verbose \
--junit-xml=results.{envname}.xml \
--durations=10 \
} telnetlib3/tests
[testenv:develop]
basepython = python3.8
commands = {posargs:{envbindir}/py.test \
--looponfail \
--log-format='%(relativeCreated)2.2f %(filename)s:%(lineno)d %(message)s' \
--strict \
--verbose \
--verbose \
--color=yes \
--cov={toxinidir}/telnetlib3 \
--cov-config={toxinidir}/.coveragerc \
--cov-report=html \
--durations=1 \
telnetlib3/tests }
# report coverage to coveralls
[testenv:coveralls]
passenv = COVERALLS_REPO_TOKEN
deps = coveralls
commands = coveralls --verbose --rcfile={toxinidir}/.coveragerc
[testenv:sa]
# perform static analysis and style enforcement
# Disabled: needs to be brought up-to-date
basepython = python3.5
deps = -rrequirements-tests.txt
-rrequirements-analysis.txt
commands = python -m compileall -fq {toxinidir}/telnetlib3
{envbindir}/rst-lint README.rst
{envbindir}/doc8 --ignore-path docs/_build --ignore D000 docs
{envbindir}/prospector {posargs:\
--die-on-tool-error \
{toxinidir}}
[testenv:docs]
# build html documentation
whitelist_externals = echo
basepython = python3.8
deps = -rrequirements-docs.txt
commands = {envbindir}/sphinx-build -W -E -v -n \
-d {toxinidir}/docs/_build/doctrees \
{posargs:-b html} docs \
{toxinidir}/docs/_build/html
echo "==> open [1;36mdocs/_build/html/index.html[0m for review."
[pytest]
looponfailroots = telnetlib3
norecursedirs = .git .tox