blob: ca1d12bcb7c46f2d0ed00fc98033dfcdcfa27b5c [file] [log] [blame]
Richard Burtondc0c6ed2020-04-08 16:39:05 +01001[tox]
2skip_missing_interpreters=true
3envlist =
4 py35
5 py36
6 py37
7
8[testenv]
9deps = pytest==5.2.0
10 pytest-cov==2.8.1
11 attrs==19.3.0
12 setuptools==41.6.0
13 numpy==1.17.2
14 pillow==6.1.0
15
16recreate = True
17whitelist_externals = /bin/sh
18commands =
19 python -m pytest test/ -v {posargs} --junit-xml=test_report_junit-{envname}.xml --cov=pyarmnn --cov-report xml:coverage-{envname}.xml
20
21[testenv:devenv]
22envdir = env
23basepython = python3.6
24usedevelop = True
25deps = {[testenv]deps}
26 tox
27skip_install = True
28commands = python -c "import sys; print('Dev environment created: ' + sys.executable)"
29
30[testenv:gen]
31basepython = python3.6
32skip_install = True
33usedevelop = True
34passenv =
35 ARMNN_LIB
36 ARMNN_INCLUDE
37commands =
38 python setup.py clean --all
39 python ./swig_generate.py
40 python setup.py build_ext --inplace
41
42[testenv:doc]
43basepython = python3.6
44deps = pdoc3==0.6.3
45passenv =
46 PYARMNN_DEV_VER
47commands =
48 python ./scripts/generate_docs.py --html --output-dir docs pyarmnn --force --template-dir=./docs_conf
49
50[testenv:pylint]
51basepython = python3.6
52deps = pylint==2.3.1
53 numpy==1.17.2
54recreate = False
55skip_install = True
56usedevelop = True
57setenv =
58 PYTHONPATH = src
59commands =
60 sh -c "pylint --rcfile=pylintconfig src --output-format=parseable --reports=no > pylint_results.txt || true"