forked from getlogbook/logbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
32 lines (28 loc) · 879 Bytes
/
tox.ini
File metadata and controls
32 lines (28 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[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