2015-12-12 17:52:18 +00:00
|
|
|
[tox]
|
2016-12-26 13:49:31 +00:00
|
|
|
envlist = py{27,35,36}-cov, htmlcov
|
2015-12-12 17:52:18 +00:00
|
|
|
|
|
|
|
[testenv]
|
2016-04-10 15:28:17 +01:00
|
|
|
basepython =
|
|
|
|
py27: {env:TOXPYTHON:python2.7}
|
|
|
|
pypy: {env:TOXPYTHON:pypy}
|
|
|
|
py34: {env:TOXPYTHON:python3.4}
|
|
|
|
py35: {env:TOXPYTHON:python3.5}
|
2016-12-25 18:08:00 +00:00
|
|
|
py36: {env:TOXPYTHON:python3.6}
|
2015-12-12 17:52:18 +00:00
|
|
|
deps =
|
2016-12-31 13:33:24 +01:00
|
|
|
cov: coverage>=4.3
|
2015-12-12 17:52:18 +00:00
|
|
|
pytest
|
|
|
|
-rrequirements.txt
|
2016-04-10 15:28:17 +01:00
|
|
|
install_command =
|
2016-12-26 13:49:31 +00:00
|
|
|
pip install -v {opts} {packages}
|
2015-12-12 17:52:18 +00:00
|
|
|
commands =
|
2016-12-26 13:49:31 +00:00
|
|
|
# run the test suite against the package installed inside tox env.
|
|
|
|
# We use parallel mode and then combine later so that coverage.py will take
|
|
|
|
# paths like .tox/py36/lib/python3.6/site-packages/fontTools and collapse
|
|
|
|
# them into Lib/fontTools.
|
2017-01-15 22:04:39 +00:00
|
|
|
cov: coverage run --parallel-mode -m pytest {posargs}
|
|
|
|
nocov: pytest {posargs}
|
2017-01-17 22:14:16 +00:00
|
|
|
# run the embedded doctests
|
|
|
|
pytest -q --pyargs fontTools
|
2015-12-12 17:52:18 +00:00
|
|
|
|
2016-12-26 13:49:31 +00:00
|
|
|
[testenv:htmlcov]
|
2016-10-14 15:18:28 +01:00
|
|
|
basepython = {env:TOXPYTHON:python3.5}
|
|
|
|
deps =
|
2016-12-31 13:33:24 +01:00
|
|
|
coverage>=4.3
|
2016-10-14 15:18:28 +01:00
|
|
|
skip_install = true
|
2016-12-26 13:49:31 +00:00
|
|
|
commands =
|
|
|
|
coverage combine
|
2017-01-15 22:04:39 +00:00
|
|
|
coverage html {posargs}
|
2016-10-14 15:18:28 +01:00
|
|
|
|
2016-12-26 13:49:31 +00:00
|
|
|
[testenv:codecov]
|
|
|
|
passenv = *
|
|
|
|
basepython = {env:TOXPYTHON:python}
|
2016-04-11 00:17:14 +01:00
|
|
|
deps =
|
2016-12-31 13:33:24 +01:00
|
|
|
coverage>=4.3
|
2016-12-26 13:49:31 +00:00
|
|
|
codecov
|
2016-04-11 00:17:14 +01:00
|
|
|
skip_install = true
|
|
|
|
ignore_outcome = true
|
2016-12-26 13:49:31 +00:00
|
|
|
commands =
|
|
|
|
coverage combine
|
|
|
|
codecov --env TOXENV
|
2016-12-26 19:36:08 +00:00
|
|
|
|
|
|
|
[testenv:bdist]
|
|
|
|
basepython = {env:TOXPYTHON:python3.5}
|
|
|
|
deps =
|
|
|
|
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 =
|
|
|
|
# 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 fonttools
|