-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
85 lines (63 loc) · 1.88 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[tox]
envlist =
py{33,34,35,36}-falcon{0.3,1.0,1.1,1.2,1.3,1.4}
pep8
pep257
coverage-dev
[pytest]
norecursedirs = build lib .tox docs demo
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
setenv = VIRTUAL_ENV = {envdir}
sitepackages = False
deps =
-r{toxinidir}/requirements-tests.txt
falcon1.1: falcon>=1.1,<1.2
falcon1.0: falcon>=1.0,<1.1
falcon0.3: falcon>=0.3,<1.0
coverage: coverage==4.0.3
coverage: coveralls==1.1
coverage: falcon>=1.1,<1.2
basepython =
py36: python3.6
py35: python3.5
py34: python3.4
py33: python3.3
# note: we test doctests to be sure that all examples are valid
# but they are not run later in coverage because they are only illustratory
commands = py.test --doctest-modules --ignore=setup.py {posargs}
usedevelop = True
[testenv:py33-falcon1.0]
# this is fix for local development on Mac OS X with python3.3 built on
# 10.6 version of SDK (read: installed from python.org). Without this tests
# will result in ImportError: dlopen(...): Symbol not found: _PyExc_ImportError
# See: falconry/falcon#787
install_command = pip install --no-binary :all: {opts} {packages}
[testenv:pep8]
basepython=python3.6
deps =
flake8==2.0
commands = flake8 {posargs}
[testenv:pep257]
basepython=python3.6
deps =
pydocstyle==1.0.0
commands = pydocstyle src tests {posargs}
[flake8]
builtins = _
exclude=.git,.tox,dist,doc,*lib/python*,*egg,.idea,docs
show-source = True
[testenv:coverage]
basepython=python3.6
usedevelop = True
commands = coverage run --source graceful -m py.test {posargs}
coverage report
coveralls --verbose
[testenv:coverage-dev]
basepython=python3.6
commands = coverage run --source graceful -m py.test {posargs}
coverage report
[testenv:coverage-html]
basepython=python3.6
commands = coverage run --source graceful -m py.test {posargs}
coverage html