2015-12-12 17:52:18 +00:00
|
|
|
[tox]
|
2016-12-25 18:08:00 +00:00
|
|
|
envlist = py27, py35, py36
|
|
|
|
skip_missing_interpreters = true
|
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 =
|
|
|
|
pytest
|
|
|
|
-rrequirements.txt
|
2016-04-10 15:28:17 +01:00
|
|
|
install_command =
|
2016-04-11 00:18:27 +01:00
|
|
|
{envpython} -m pip install -v {opts} {packages}
|
2015-12-12 17:52:18 +00:00
|
|
|
commands =
|
2016-10-13 19:00:29 +01:00
|
|
|
# run the test suite against the package installed inside tox env
|
|
|
|
py.test {posargs:--pyargs fontTools}
|
2015-12-12 17:52:18 +00:00
|
|
|
|
2016-10-14 15:18:28 +01:00
|
|
|
[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}
|
|
|
|
|
2016-04-11 00:17:14 +01:00
|
|
|
[testenv:coveralls]
|
|
|
|
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
|
|
|
basepython=python3.5
|
|
|
|
deps =
|
2016-10-14 15:18:28 +01:00
|
|
|
{[testenv:coverage]deps}
|
2016-04-11 00:17:14 +01:00
|
|
|
coveralls
|
|
|
|
skip_install = true
|
|
|
|
ignore_outcome = true
|
|
|
|
commands=
|
|
|
|
# measure test coverage and upload report to coveralls
|
|
|
|
py.test --cov
|
|
|
|
coveralls
|