-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
64 lines (52 loc) · 1.39 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
57
58
59
60
61
62
63
64
[base]
name = neurodamus
[tox]
envlist = flake8, unit
[testenv]
deps =
-r tests/requirements.txt
[testenv:unit]
commands =
pytest tests/unit
[testenv:integration]
deps =
NEURON
morphio
-r tests/requirements.txt
passenv = NEURODAMUS_NEOCORTEX_ROOT
setenv =
# build_ndcore.sh will install into _lib
HOC_LIBRARY_PATH={toxinidir}/_lib
NRNMECH_LIB_PATH={toxinidir}/_lib/libnrnmech.so
NEURON_INIT_MPI=0
PYTHONPATH = {toxinidir}/core/python
allowlist_externals =
{toxinidir}/ci/build_ndcore.sh
commands =
{toxinidir}/ci/build_ndcore.sh {toxinidir}/neurodamus/data
pytest -x --forked tests/integration
[testenv:bbp-model]
# Please module load neurodamus-neocortex py-neurodamus beforehand
passenv = *
setenv =
PYTHONPATH={toxinidir}:{env:PYTHONPATH}
HOC_LIBRARY_PATH={toxinidir}/core/hoc:{env:HOC_LIBRARY_PATH}
NEURON_INIT_MPI=1
commands =
python -c "import os; print(os.environ.get('HOC_LIBRARY_PATH', ''))"
pytest -s -x --forked --durations=5 --durations-min=15 {posargs:tests/integration-e2e}
[testenv:flake8]
changedir = {toxinidir}
deps = flake8-pyproject
skip_install = True
commands = flake8
[testenv:docs]
changedir = {toxinidir}
deps =
sphinx<5.1.0
sphinx-bluebrain-theme
setenv =
PYTHONPATH = {toxinidir}
PIP_INDEX_URL = https://bbpteam.epfl.ch/repository/devpi/simple
commands =
sphinx-build -T -W docs docs/_build