-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
51 lines (46 loc) · 1.33 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
# Copyright (c) AUTHORS
# See LICENSE for details.
[tox]
envlist = {py27,pypy,py34}-unit,flake8,py27-wheel,docs,nitpick
toxworkdir = {toxinidir}/build/.tox
[testenv]
deps =
six
{py27,pypy,py34}-unit: coverage
{py27,pypy,py34}-unit: pytest
{py27,pypy,py34}-lint: flake8
commands =
{py27,pypy,py34}-unit: coverage run {envbindir}/py.test {posargs:rfc7464}
{py27,pypy,py34}-unit: coverage report --include rfc7464* --omit *rfc7464/tests/*,*rfc7464/_version* --show-missing --fail-under=100
py27-lint: flake8 rfc7464
[testenv:nitpick]
commands =
python -c 'from rfc7464.tests.nitpicker import main;main([])'
[testenv:flake8]
skipsdist = True
deps =
flake8
flake8-import-order
pep8-naming
commands =
flake8 rfc7464
[testenv:py27-wheel]
skipsdist = True
deps =
coverage
wheel
six
pytest
commands =
mkdir -p {envtmpdir}/dist
python setup.py bdist_wheel --dist-dir {envtmpdir}/dist
sh -c "pip install --no-index {envtmpdir}/dist/*.whl"
coverage run {envbindir}/py.test {posargs:rfc7464}
coverage report --include rfc7464* --omit *rfc7464/tests/*,*rfc7464/_version* --show-missing --fail-under=100
[testenv:docs]
changedir = docs
deps =
sphinx
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
basepython = python2.7