forked from pex-tool/pex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
134 lines (114 loc) · 3.19 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[tox]
skip_missing_interpreters = True
minversion = 1.8
envlist =
py{py,27,34}-requests,style,isort-check
[testenv]
commands =
py.test {posargs:}
deps =
pytest==2.5.2
twitter.common.contextutil>=0.3.1,<0.4.0
twitter.common.dirutil>=0.3.1,<0.4.0
twitter.common.lang>=0.3.1,<0.4.0
twitter.common.testing>=0.3.1,<0.4.0
wheel
py26: mock
py27: mock
pypy: mock
run: requests
requests: requests
requests: responses
cachecontrol: CacheControl
cachecontrol: lockfile
coverage: coverage==3.7.1
[integration]
commands =
# This is necessary due to https://bitbucket.org/hpk42/tox/issue/175/cant-do-substitution-base-commands
bash scripts/coverage.sh
[testenv:py27-coverage]
commands = {[integration]commands}
[testenv:py27-requests-cachecontrol-coverage]
commands = {[integration]commands}
[testenv:py34-requests-cachecontrol-coverage]
commands = {[integration]commands}
[testenv:py34-coverage]
commands = {[integration]commands}
[testenv:pypy-requests-cachecontrol-coverage]
commands = {[integration]commands}
[testenv:py27-coverage-simple]
basepython = python2.7
commands =
coverage run -p -m py.test {posargs:}
python scripts/combine_coverage.py
coverage report
coverage html
[testenv:coverage]
basepython = python2.7
deps =
coverage==3.7.1
tox
commands =
# meta
tox -e py27-coverage
tox -e py27-requests-cachecontrol-coverage
tox -e py34-requests-cachecontrol-coverage
tox -e py34-coverage
tox -e pypy-requests-cachecontrol-coverage
python scripts/combine_coverage.py
coverage report
coverage html
open htmlcov/index.html
[testenv:style]
basepython = python2.7
deps =
twitter.checkstyle
commands =
twitterstyle -n ImportOrder {toxinidir}/pex {toxinidir}/tests
[testenv:isort-run]
basepython = python2.7
deps = isort
commands = isort -ns __init__.py -rc {toxinidir}/pex {toxinidir}/tests
[testenv:isort-check]
basepython = python2.7
deps = isort
commands = isort -ns __init__.py -rc -c {toxinidir}/pex {toxinidir}/tests
[testenv:postreview]
basepython = python2.7
install_command = pip install --allow-all-external --allow-unverified rbtools {opts} {packages}
deps = RBTools
commands = rbt {posargs:}
[testenv:docs]
changedir = docs
deps =
sphinx
sphinx-rtd-theme
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . _build/html
open _build/html/index.html
[testenv:py27-repl]
commands = python2.7
[testenv:py27-run]
commands = pex {posargs:}
[testenv:py34-run]
commands = pex {posargs:}
[testenv:py27-package]
commands = pex --cache-dir {envtmpdir}/buildcache wheel requests . -o dist/pex -e pex.bin.pex:main -v
[testenv:py34-package]
commands = pex --cache-dir {envtmpdir}/buildcache wheel requests . -o dist/pex -e pex.bin.pex:main -v
# Would love if you didn't have to enumerate environments here :-\
[testenv:py26]
[testenv:py26-requests]
[testenv:py26-requests-cachecontrol]
[testenv:py27]
[testenv:py27-requests]
[testenv:py27-requests-cachecontrol]
[testenv:py33]
[testenv:py33-requests]
[testenv:py33-requests-cachecontrol]
[testenv:py34]
[testenv:py34-requests]
[testenv:py34-requests-cachecontrol]
[testenv:pypy]
[testenv:pypy-requests]
[testenv:pypy-requests-cachecontrol]