Codebase list logbook / 854b2064-14b6-4be9-9d9b-f6a59b8db224/main tox.ini
854b2064-14b6-4be9-9d9b-f6a59b8db224/main

Tree @854b2064-14b6-4be9-9d9b-f6a59b8db224/main (Download .tar.gz)

tox.ini @854b2064-14b6-4be9-9d9b-f6a59b8db224/main

9af17e1
9949c7f
 
9af17e1
 
9949c7f
 
 
 
 
 
 
 
 
 
 
 
9af17e1
9949c7f
 
 
9af17e1
9949c7f
 
 
 
 
 
 
 
 
 
[tox]
envlist = py{27,35,36,37}{,-speedups},pypy,py37-docs
skipsdist = True

[testenv]
whitelist_externals =
    rm
deps =
    py{27}: mock
    pytest
    speedups: Cython
setenv =
    !speedups: DISABLE_LOGBOOK_CEXT=1
    !speedups: DISABLE_LOGBOOK_CEXT_AT_RUNTIME=1
changedir = {toxinidir}
commands =
    {envpython} -m pip install -e {toxinidir}[all]

    # Make sure that speedups are available/not available, as needed.
    speedups: {envpython} -c "from logbook.base import _has_speedups; exit(0 if _has_speedups else 1)"
    !speedups: {envpython} -c "from logbook.base import _has_speedups; exit(1 if _has_speedups else 0)"

    {envpython} {toxinidir}/scripts/test_setup.py
    py.test {toxinidir}/tests

[testenv:py37-docs]
deps =
    Sphinx>=1.3
changedir = docs
commands =
    sphinx-build -W -b html . _build/html
    sphinx-build -W -b linkcheck . _build/linkcheck