fonttools/tox.ini
Cosimo Lupo 667e291501
tox.ini: add py36 to env list
Running `tox` locally will run tests on 2.7, 3.5 and 3.6, by default; in any of these is not found, it will be skipped.
2016-12-25 18:08:00 +00:00

43 lines
1006 B
INI

[tox]
envlist = py27, py35, py36
skip_missing_interpreters = true
[testenv]
basepython =
py27: {env:TOXPYTHON:python2.7}
pypy: {env:TOXPYTHON:pypy}
py34: {env:TOXPYTHON:python3.4}
py35: {env:TOXPYTHON:python3.5}
py36: {env:TOXPYTHON:python3.6}
deps =
pytest
-rrequirements.txt
install_command =
{envpython} -m pip install -v {opts} {packages}
commands =
# run the test suite against the package installed inside tox env
py.test {posargs:--pyargs fontTools}
[testenv:coverage]
basepython = {env:TOXPYTHON:python3.5}
deps =
{[testenv]deps}
pytest-cov
skip_install = true
commands=
# measure test coverage and create html report
py.test --cov --cov-report html {posargs}
[testenv:coveralls]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
basepython=python3.5
deps =
{[testenv:coverage]deps}
coveralls
skip_install = true
ignore_outcome = true
commands=
# measure test coverage and upload report to coveralls
py.test --cov
coveralls