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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
[tox]
minversion = 1.6
skipsdist = True
envlist = py27, py3, py3-flake8, py3-pylint, py27-pylint, trusty-check, trusty-py27, trusty-py3
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv]
usedevelop = True
# LC_ALL see https://github.com/gabrielfalcao/HTTPretty/issues/223
setenv = VIRTUAL_ENV={envdir}
LC_ALL = en_US.utf-8
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = {envpython} {toxinidir}/tools/noproxy nosetests \
{posargs:--with-coverage --cover-erase --cover-branches \
--cover-package=curtin --cover-inclusive tests/unittests}
[testenv:py3]
basepython = python3
[testenv:py27]
basepython = python2.7
# tox uses '--pre' by default to pip install. We don't want that, and
# 'pip_pre=False' isn't available until tox version 1.9.
install_command = pip install {opts} {packages}
[testenv:py2-flake8]
basepython = python2
deps = {[testenv]deps}
flake8
commands = {envpython} -m flake8 {posargs:curtin}
[testenv:py3-flake8]
basepython = python3
deps = {[testenv]deps}
flake8
commands = {envpython} -m flake8 {posargs:curtin tests/}
[testenv:py3-pylint]
# set basepython because tox 1.6 (trusty) does not support generated environments
basepython = python3
deps = {[testenv]deps}
pylint==1.5.4
bzr+lp:simplestreams
commands = {envpython} -m pylint --errors-only {posargs:curtin tests/vmtests}
[testenv:py27-pylint]
# set basepython because tox 1.6 (trusty) does not support generated environments
basepython = python2.7
deps = {[testenv]deps}
pylint==1.5.4
commands = {envpython} -m pylint --errors-only {posargs:curtin}
[testenv:docs]
deps = {[testenv]deps}
sphinx
sphinx-rtd-theme
commands =
sphinx-build -b html -d doc/_build/doctrees doc/ doc/_build/html
[testenv:trusty]
# this environment provides roughly a trusty build environment where
# where 'make check' is run during package build. This protects against
# package build errors on trusty where pep8 and pyflakes there have subtly
# different behavior. Note, we do only run pyflakes3, though.
deps = pyflakes==0.8.1
pep8==1.4.6
mock==1.0.1
nose==1.3.1
pyyaml==3.10
oauthlib==0.6.1
[testenv:trusty-check]
deps = {[testenv:trusty]deps}
basepython = python3
commands =
{toxinidir}/tools/run-pyflakes3 {posargs}
{toxinidir}/tools/run-pep8 {posargs}
[testenv:trusty-py27]
deps = {[testenv:trusty]deps}
basepython = python2.7
commands = {envpython} {toxinidir}/tools/noproxy nosetests \
{posargs:tests/unittests}
[testenv:trusty-py3]
deps = {[testenv:trusty]deps}
basepython = python3
commands = {envpython} {toxinidir}/tools/noproxy nosetests \
{posargs:tests/unittests}
[testenv:tip-pycodestyle]
commands = {envpython} -m pycodestyle {posargs:curtin/ tests/ tools/}
deps = pycodestyle
[testenv:tip-pyflakes]
commands = {envpython} -m pyflakes {posargs:curtin/ tests/ tools/}
deps = pyflakes
[flake8]
builtins = _
exclude = .venv,.bzr,.tox,dist,doc,*lib/python*,*egg,build
|