forked from robotools/fontParts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
68 lines (63 loc) · 1.75 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py{27,36}-cov, py{35,py}-nocov, htmlcov
[testenv]
basepython =
py27: {env:TOXPYTHON:python2.7}
py35: {env:TOXPYTHON:python3.5}
py36: {env:TOXPYTHON:python3.6}
pypy: {env:TOXPYTHON:pypy}
deps =
cov: coverage>=4.3
unittest2>=1.1.0
-rrequirements.txt
install_command =
pip install -v {opts} {packages}
commands =
cov: coverage run --parallel-mode Lib/fontParts/fontshell/test.py {posargs}
nocov: python Lib/fontParts/fontshell/test.py {posargs}
[testenv:htmlcov]
basepython = {env:TOXPYTHON:python3.6}
deps =
coverage>=4.3
skip_install = true
commands =
coverage combine
coverage html
[testenv:codecov]
passenv = *
basepython = {env:TOXPYTHON:python}
deps =
coverage>=4.3
codecov
skip_install = true
ignore_outcome = true
commands =
coverage combine
codecov --env TOXENV
[testenv:bdist]
basepython = {env:TOXPYTHON:python3.6}
deps =
pygments
docutils
setuptools
wheel
skip_install = true
install_command =
# make sure we use the latest setuptools and wheel
pip install --upgrade {opts} {packages}
whitelist_externals =
rm
commands =
# check metadata and rst long_description
python setup.py check --restructuredtext --strict
# clean up build/ and dist/ folders
rm -rf {toxinidir}/dist
python setup.py clean --all
# build sdist
python setup.py sdist --dist-dir {toxinidir}/dist
# build wheel from sdist
pip wheel -v --no-deps --no-index --wheel-dir {toxinidir}/dist --find-links {toxinidir}/dist fontParts