forked from commaai/capnpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (32 loc) · 804 Bytes
/
tox.ini
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
33
34
35
36
37
38
39
40
41
42
[tox]
# nopyx is a special env where Cython is NOT installed, and thus we run
# pure-python tests
envlist = nopyx-test,py27-{test,bench},py35-{test},py36-{test},pypy-{test,bench},pypy3-{test},docs
[testenv]
setenv =
TOX_ENV={envname}
deps =
pytest==2.8.2
git+https://github.com/antocuni/pytest-benchmark.git#egg=pytest-benchmark
py27: pycapnp
commands =
test: py.test {envsitepackagesdir}/capnpy/testing -rs --pyx {posargs}
bench: py.test {envsitepackagesdir}/capnpy/benchmarks -rs --benchmark-autosave {posargs}
[testenv:nopyx-test]
setenv =
USE_CYTHON=0
[testenv:docs]
setenv =
USE_CYTHON=0
whitelist_externals =
make
deps =
pytest==2.8.2
sphinx
sphinx_rtd_theme
mock
dotmap
pygal
commands =
py.test docs/ext
make -C docs doctest