-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
39 lines (34 loc) · 958 Bytes
/
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
[tox]
skipsdist = True
envlist = py36,py37,codestyle,coverage-report
[testenv]
whitelist_externals = poetry
skip_install = true
passenv = HOME
# Prevent random setuptools/pip breakages like
# https://github.com/pypa/setuptools/issues/1042 from breaking our builds.
setenv =
VIRTUALENV_NO_DOWNLOAD=1
deps = poetry
commands =
poetry install
poetry run pytest --cov {posargs}
[testenv:codestyle]
basepython = python3.6
commands =
poetry run flake8 amqproto
[testenv:docs]
basepython = python3.6
setenv =
PYTHONHASHSEED = 0
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
python -m doctest README.rst
# Uses default basepython otherwise reporting doesn't work on Travis where
# Python 3.6 is only available in 3.6 jobs.
[testenv:coverage-report]
skip_install = true
commands =
coverage combine
coverage report