also run tests with cu2qu compiled with cython

This commit is contained in:
Cosimo Lupo 2020-04-02 19:31:08 +01:00
parent 560c634ed8
commit 111a1c199a
No known key found for this signature in database
GPG Key ID: 179A8F0895A02F4F
2 changed files with 7 additions and 1 deletions

View File

@ -26,6 +26,8 @@ matrix:
env: TOXENV=py37-cov env: TOXENV=py37-cov
- python: 3.8 - python: 3.8
env: TOXENV=py38-cov env: TOXENV=py38-cov
- python: 3.8
env: TOXENV=py38-cy
- python: pypy3 - python: pypy3
# disable coverage.py on pypy because of performance problems # disable coverage.py on pypy because of performance problems
env: TOXENV=pypy3 env: TOXENV=pypy3

View File

@ -3,9 +3,11 @@ minversion = 3.0
envlist = py3{6,7,8}-cov, htmlcov envlist = py3{6,7,8}-cov, htmlcov
[testenv] [testenv]
setenv =
cy: FONTTOOLS_WITH_CYTHON=1
deps = deps =
cov: coverage>=4.3 cov: coverage>=4.3
pytest==5.1.1 pytest
pytest-randomly pytest-randomly
-rrequirements.txt -rrequirements.txt
extras = extras =
@ -15,6 +17,8 @@ extras =
interpolatable interpolatable
!nolxml: lxml !nolxml: lxml
commands = commands =
cy: python -c "from fontTools.cu2qu.cu2qu import COMPILED; assert COMPILED"
!cy: python -c "from fontTools.cu2qu.cu2qu import COMPILED; assert not COMPILED"
# test with or without coverage, passing extra positonal args to pytest # test with or without coverage, passing extra positonal args to pytest
cov: coverage run --parallel-mode -m pytest {posargs:Tests fontTools} cov: coverage run --parallel-mode -m pytest {posargs:Tests fontTools}
!cov: pytest {posargs:Tests fontTools} !cov: pytest {posargs:Tests fontTools}