fonttools/tox.ini

55 lines
1.3 KiB
INI
Raw Normal View History

[tox]
envlist = py27, pypy, py33, py34, py35
[testenv]
basepython =
py27: {env:TOXPYTHON:python2.7}
pypy: {env:TOXPYTHON:pypy}
py33: {env:TOXPYTHON:python3.3}
py34: {env:TOXPYTHON:python3.4}
py35: {env:TOXPYTHON:python3.5}
deps =
pytest
-rrequirements.txt
install_command =
{envpython} -m pip install -v {opts} {packages}
commands =
# check that we have the expected Python version and architecture
{envpython} -c "import sys; print(sys.version)"
{envpython} -c "import struct; print(struct.calcsize('P') * 8)"
# run the test suite
py.test
2016-04-11 00:17:14 +01:00
[testenv:coveralls]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
basepython=python3.5
deps =
{[testenv]deps}
pytest-cov
coveralls
skip_install = true
ignore_outcome = true
commands=
# measure test coverage and upload report to coveralls
py.test --cov
coveralls
[pytest]
minversion = 2.8
testpaths =
Lib/fontTools
python_files =
*_test.py
python_classes =
*Test
addopts =
# run py.test in verbose mode
-v
# show extra test summary info
-r a
# run doctests in all .py modules
--doctest-modules
# py.test raises ImportError with inspect.py (requires pygtk) and with
# reportLabPen.py (reportlab). They don't have doctests, it's OK to skip.
--doctest-ignore-import-errors