-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathtox.ini
46 lines (39 loc) · 1.11 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
[tox]
envlist = py{37}, docs
skip_missing_interpreters = true
[testenv]
passenv = SSL_CERT_FILE CI TRAVIS* APPVEYOR* CODECOV*
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
usedevelop = True
deps = -r requirements.txt
-r test/requirements.txt
commands = pytest {posargs:-vv --cov-report term-missing --cov=sureal/ --doctest-modules}
[testenv:coverage]
passenv = {[testenv]passenv}
setenv = COVERAGE_FILE={toxworkdir}/.coverage
basepython = python
skip_install = True
deps = coverage
commands = coverage combine
coverage report -i -m
coverage xml -i -o "{toxworkdir}/coverage.xml"
coverage html -i -d "{toxworkdir}/coverage"
[testenv:docs]
passenv = {[testenv]passenv}
basepython = python
skip_install = True
deps = readme_renderer
commands = python setup.py check --strict --restructuredtext
python setup.py explain -c 125
[testenv:venv]
basepython = python3
envdir = .venv
usedevelop = True
deps = -r requirements.txt
-r test/requirements.txt
commands = {posargs:python --version}
# Configuration
[pytest]
cache_dir = .tox/.cache
[coverage:run]
source = sureal