-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
56 lines (47 loc) · 1.21 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[tox]
envlist = py3
[testenv]
deps =
pytest
!py2-!py27: pytest-asyncio
pytest-cov
coverage
numpy
matplotlib
commands =
julia --color=yes -e "using Pkg; Pkg.instantiate()"
julia --color=yes -e "using PyCall; \
@show PyCall.python; \
@show PyCall.pyversion"
python -m julia.with_rebuilt -- py.test \
!py2-!py27: --pyargs ipyjulia_hacks \
py2-py27: --pyargs ipyjulia_hacks.core \
!py2-!py27: --doctest-modules \
{toxinidir}/doc/source \
{posargs}
whitelist_externals =
julia
setenv =
JULIA_PROJECT = {toxinidir}
# Do not use matplotlib GUI backend during tests.
MPLBACKEND = agg
passenv =
PYTHON
# See: julia.with_rebuilt
PYJULIA_TEST_REBUILD
JULIA_EXE
# See: https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#travisci
TRAVIS
TRAVIS_*
[coverage:paths]
source =
src/ipyjulia_hacks
.tox/*/lib/python*/site-packages/ipyjulia_hacks
# https://coverage.readthedocs.io/en/coverage-4.5.1a/config.html#paths
[testenv:doc]
deps =
numpy
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -b "html" -d build/doctrees {posargs} source "build/html"
changedir = {toxinidir}/doc