-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
65 lines (54 loc) · 1.81 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
[tox]
envlist = clean, flake8, py35, py27, py34, build, coverage
minversion = 2.3.1
skipsdist = True
skip_missing_interpreters = true
toxworkdir = /tmp/tox/sphinxserve
[testenv]
whitelist_externals =
/bin/sh
/bin/rm
[testenv:clean]
deps =
commands = rm -rf dist sphinxserve.egg-info .eggs pex/scripts
[flake8]
exclude = .git
ignore = H102,E113,E121,E127,E128,E402,H202,H301,H304,H405,H803
[testenv:flake8]
deps = flake8
commands = flake8 {toxinidir}
[testenv:py35]
deps = -rrequirements.txt
-rtests/test_requirements.txt
commands = py.test --cov-config tests/coverage.ini -c tests/pytest.ini {posargs}
[testenv:py27]
deps = {[testenv:py35]deps}
commands = py.test --cov-config tests/coverage.ini -c tests/pytest.ini {posargs}
[testenv:py34]
deps = {[testenv:py35]deps}
commands = py.test --cov-config tests/coverage.ini -c tests/pytest.ini {posargs}
[testenv:build-whl]
recreate= True
deps = wheel==0.29.0
commands = {[testenv:clean]commands}
pip wheel --wheel-dir=dist sphinx<1.3 {toxinidir}
[testenv:dev]
envdir = /tmp/tox/dev
usedevelop = True
commands =
[testenv:build]
basepython = python3.5
recreate= True
deps = wheel==0.29.0
pex==1.1.6
commands = {[testenv:build-whl]commands}
pip wheel --wheel-dir=dist -rpex/pex_requirements.txt
sh -c '{envdir}/bin/pex -v --disable-cache --no-index -f dist \
-c sphinxserve -o pex/scripts/sphinxserve dist/*'
sh -x -c 'openssl sha1 pex/scripts/sphinxserve'
pip wheel --wheel-dir=dist pex/
sh -x -c 'openssl sha1 -sha256 dist/sphinxserve_pex*'
[testenv:coverage]
deps = {[testenv:py35]deps}
commands = coverage combine
coverage html --rcfile=tests/coverage.ini