From 111a1c199a400272dc669c22f1ee3ce146017811 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 2 Apr 2020 19:31:08 +0100 Subject: [PATCH] also run tests with cu2qu compiled with cython --- .travis.yml | 2 ++ tox.ini | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5a74285f8..7ff7e3160 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,8 @@ matrix: env: TOXENV=py37-cov - python: 3.8 env: TOXENV=py38-cov + - python: 3.8 + env: TOXENV=py38-cy - python: pypy3 # disable coverage.py on pypy because of performance problems env: TOXENV=pypy3 diff --git a/tox.ini b/tox.ini index c00b33ce2..033e13863 100644 --- a/tox.ini +++ b/tox.ini @@ -3,9 +3,11 @@ minversion = 3.0 envlist = py3{6,7,8}-cov, htmlcov [testenv] +setenv = + cy: FONTTOOLS_WITH_CYTHON=1 deps = cov: coverage>=4.3 - pytest==5.1.1 + pytest pytest-randomly -rrequirements.txt extras = @@ -15,6 +17,8 @@ extras = interpolatable !nolxml: lxml 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 cov: coverage run --parallel-mode -m pytest {posargs:Tests fontTools} !cov: pytest {posargs:Tests fontTools}