aboutsummaryrefslogtreecommitdiff
path: root/python/pyarmnn/tox.ini
blob: c182871f1241efd5e9aad239beb1612f74c93dde (plain)
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
; Copyright © 2019 Arm Ltd. All rights reserved.
; SPDX-License-Identifier: MIT
[tox]
skip_missing_interpreters=true
envlist =
    py35
    py36
    py37

[testenv]
deps = pytest==5.2.0
       pytest-cov==2.8.1
       attrs==19.3.0
       setuptools==41.6.0
       numpy==1.17.2
       pillow==6.1.0

recreate = True
whitelist_externals = /bin/sh
commands =
    python -m pytest test/ -v {posargs} --junit-xml=test_report_junit-{envname}.xml --cov=pyarmnn --cov-report xml:coverage-{envname}.xml


[testenv:devenv]
envdir = env
basepython = python3.6
usedevelop = True
deps = {[testenv]deps}
       tox
recreate = True
commands = python -c "import sys; print('Dev environment created: ' + sys.executable)"

[testenv:gen]
basepython = python3.6
skip_install = True
usedevelop = True
passenv =
    ARMNN_LIB
    ARMNN_INCLUDE
commands =
    python setup.py clean --all
    python ./swig_generate.py
    python setup.py build_ext --inplace

[testenv:doc]
basepython = python3.6
deps = pdoc3==0.6.3
passenv =
    PYARMNN_DEV_VER
commands =
    python ./scripts/generate_docs.py --html --output-dir docs pyarmnn --force

[testenv:pylint]
basepython = python3.6
deps = pylint==2.3.1
       numpy==1.17.2
recreate = False
skip_install = True
usedevelop = True
setenv =
    PYTHONPATH = src
commands =
    sh -c "pylint --rcfile=pylintconfig src --output-format=parseable --reports=no > pylint_results.txt || true"