-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathtox.ini
55 lines (49 loc) · 1.55 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
[tox]
envlist = py{27,3}-{unit,functional,style}
[gh-actions]
python =
3.6: py3
3.7: py3
3.8: py3
3.9: py3
[testenv]
envdir =
py27{-unit,-functional,-style,-syntax}: {toxworkdir}/py27
py3{5,6,7,8,}{-unit,-functional,-style,-syntax}: {toxworkdir}/py3
docs: {toxworkdir}/docs
deps =
coverage
flake8
mock
nose
sh
pathlib
download = true
whitelist_externals =
make
find
cd
pwd
passenv = https_proxy
setenv =
TOX_NRNDIR={envdir}/.tox-neuronpy
PYTHONPATH={env:TOX_NRNDIR}/local/lib/python:{env:TOX_NRNDIR}/.neuronpy/local/lib64/python
TOX_ENVBINDIR={envbindir}
TOX_NRNBINDIR=../.tox-neuronpy/local/x86_64/bin/
commands =
make clean
./.install_neuron.sh {env:TOX_NRNDIR}/src {env:TOX_NRNDIR}/local {basepython}
make toxbinlinks
functional: make stochkv_prepare l5pc_prepare sc_prepare meta_prepare
style: pycodestyle --ignore=E402,W503,W504 bluepyopt
syntax: flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
unit: nosetests -vx -a unit --with-coverage --cover-package bluepyopt --cover-xml --cover-xml-file=cov_reports/unit.coverage.xml --cover-html --cover-html-dir=cov_reports/html/unit []
functional: nosetests -vx -a !unit --with-coverage --cover-package bluepyopt --cover-xml --cover-xml-file=cov_reports/functional.coverage.xml --cover-html --cover-html-dir=cov_reports/html/functional []
[testenv:docs]
basepython = python3.6
changedir = docs
deps =
sphinx
sphinx-bluebrain-theme
commands = make html SPHINXOPTS=-W
whitelist_externals = make