tox: add extras; allow to test with/without lxml
calling 'tox -e py37-cov-nolxml' will run tests without lxml, using built-in ElementTree library
This commit is contained in:
parent
b23a208805
commit
b1093c8ac1
15
tox.ini
15
tox.ini
@ -1,19 +1,20 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 3.0
|
minversion = 3.0
|
||||||
envlist = py{27,36,37}-cov, htmlcov
|
envlist = py{27,37}-cov, htmlcov
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
cov: coverage>=4.3
|
cov: coverage>=4.3
|
||||||
pytest
|
pytest
|
||||||
-rrequirements.txt
|
-rrequirements.txt
|
||||||
install_command =
|
extras =
|
||||||
pip install -v {opts} {packages}
|
ufo
|
||||||
|
woff
|
||||||
|
unicode
|
||||||
|
interpolatable
|
||||||
|
!nolxml: lxml
|
||||||
commands =
|
commands =
|
||||||
# run the test suite against the package installed inside tox env.
|
# test with or without coverage, passing extra positonal args to pytest
|
||||||
# We use parallel mode and then combine later so that coverage.py will take
|
|
||||||
# paths like .tox/py36/lib/python3.6/site-packages/fontTools and collapse
|
|
||||||
# them into Lib/fontTools.
|
|
||||||
cov: coverage run --parallel-mode -m pytest {posargs}
|
cov: coverage run --parallel-mode -m pytest {posargs}
|
||||||
nocov: pytest {posargs}
|
nocov: pytest {posargs}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user