Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 1 | [tox] |
| 2 | skip_missing_interpreters=true |
| 3 | envlist = |
| 4 | py35 |
| 5 | py36 |
| 6 | py37 |
| 7 | |
| 8 | [testenv] |
| 9 | deps = 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 Macenauer | 5e123f8 | 2020-04-15 13:28:29 +0000 | [diff] [blame] | 15 | requests==2.23.0 |
Kevin May | f878951 | 2021-11-10 15:00:45 +0000 | [diff] [blame] | 16 | more-itertools==8.10.0 |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 17 | |
| 18 | recreate = True |
Cathal Corbett | 31fb60b | 2021-11-24 18:14:31 +0000 | [diff] [blame] | 19 | allowlist_externals = /bin/sh |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 20 | commands = |
Pavel Macenauer | 5e123f8 | 2020-04-15 13:28:29 +0000 | [diff] [blame] | 21 | python ./scripts/download_test_resources.py |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 22 | python -m pytest test/ -v {posargs} --junit-xml=test_report_junit-{envname}.xml --cov=pyarmnn --cov-report xml:coverage-{envname}.xml |
| 23 | |
| 24 | [testenv:devenv] |
| 25 | envdir = env |
| 26 | basepython = python3.6 |
| 27 | usedevelop = True |
| 28 | deps = {[testenv]deps} |
| 29 | tox |
| 30 | skip_install = True |
| 31 | commands = python -c "import sys; print('Dev environment created: ' + sys.executable)" |
| 32 | |
| 33 | [testenv:gen] |
| 34 | basepython = python3.6 |
| 35 | skip_install = True |
| 36 | usedevelop = True |
| 37 | passenv = |
| 38 | ARMNN_LIB |
| 39 | ARMNN_INCLUDE |
| 40 | commands = |
| 41 | python setup.py clean --all |
| 42 | python ./swig_generate.py |
| 43 | python setup.py build_ext --inplace |
| 44 | |
| 45 | [testenv:doc] |
| 46 | basepython = python3.6 |
| 47 | deps = pdoc3==0.6.3 |
| 48 | passenv = |
| 49 | PYARMNN_DEV_VER |
| 50 | commands = |
| 51 | python ./scripts/generate_docs.py --html --output-dir docs pyarmnn --force --template-dir=./docs_conf |
| 52 | |
| 53 | [testenv:pylint] |
| 54 | basepython = python3.6 |
| 55 | deps = pylint==2.3.1 |
| 56 | numpy==1.17.2 |
| 57 | recreate = False |
| 58 | skip_install = True |
| 59 | usedevelop = True |
| 60 | setenv = |
| 61 | PYTHONPATH = src |
| 62 | commands = |
| 63 | sh -c "pylint --rcfile=pylintconfig src --output-format=parseable --reports=no > pylint_results.txt || true" |