blob: 7fa437c33f36dc8442694eaf882600ce788aea40 [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
Pavel Macenauer5e123f82020-04-15 13:28:29 +000015 requests==2.23.0
Richard Burtondc0c6ed2020-04-08 16:39:05 +010016
17recreate = True
18whitelist_externals = /bin/sh
19commands =
Pavel Macenauer5e123f82020-04-15 13:28:29 +000020 python ./scripts/download_test_resources.py
Richard Burtondc0c6ed2020-04-08 16:39:05 +010021 python -m pytest test/ -v {posargs} --junit-xml=test_report_junit-{envname}.xml --cov=pyarmnn --cov-report xml:coverage-{envname}.xml
22
23[testenv:devenv]
24envdir = env
25basepython = python3.6
26usedevelop = True
27deps = {[testenv]deps}
28 tox
29skip_install = True
30commands = python -c "import sys; print('Dev environment created: ' + sys.executable)"
31
32[testenv:gen]
33basepython = python3.6
34skip_install = True
35usedevelop = True
36passenv =
37 ARMNN_LIB
38 ARMNN_INCLUDE
39commands =
40 python setup.py clean --all
41 python ./swig_generate.py
42 python setup.py build_ext --inplace
43
44[testenv:doc]
45basepython = python3.6
46deps = pdoc3==0.6.3
47passenv =
48 PYARMNN_DEV_VER
49commands =
50 python ./scripts/generate_docs.py --html --output-dir docs pyarmnn --force --template-dir=./docs_conf
51
52[testenv:pylint]
53basepython = python3.6
54deps = pylint==2.3.1
55 numpy==1.17.2
56recreate = False
57skip_install = True
58usedevelop = True
59setenv =
60 PYTHONPATH = src
61commands =
62 sh -c "pylint --rcfile=pylintconfig src --output-format=parseable --reports=no > pylint_results.txt || true"