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 |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 16 | |
| 17 | recreate = True |
| 18 | whitelist_externals = /bin/sh |
| 19 | commands = |
Pavel Macenauer | 5e123f8 | 2020-04-15 13:28:29 +0000 | [diff] [blame] | 20 | python ./scripts/download_test_resources.py |
Richard Burton | dc0c6ed | 2020-04-08 16:39:05 +0100 | [diff] [blame] | 21 | 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] |
| 24 | envdir = env |
| 25 | basepython = python3.6 |
| 26 | usedevelop = True |
| 27 | deps = {[testenv]deps} |
| 28 | tox |
| 29 | skip_install = True |
| 30 | commands = python -c "import sys; print('Dev environment created: ' + sys.executable)" |
| 31 | |
| 32 | [testenv:gen] |
| 33 | basepython = python3.6 |
| 34 | skip_install = True |
| 35 | usedevelop = True |
| 36 | passenv = |
| 37 | ARMNN_LIB |
| 38 | ARMNN_INCLUDE |
| 39 | commands = |
| 40 | python setup.py clean --all |
| 41 | python ./swig_generate.py |
| 42 | python setup.py build_ext --inplace |
| 43 | |
| 44 | [testenv:doc] |
| 45 | basepython = python3.6 |
| 46 | deps = pdoc3==0.6.3 |
| 47 | passenv = |
| 48 | PYARMNN_DEV_VER |
| 49 | commands = |
| 50 | python ./scripts/generate_docs.py --html --output-dir docs pyarmnn --force --template-dir=./docs_conf |
| 51 | |
| 52 | [testenv:pylint] |
| 53 | basepython = python3.6 |
| 54 | deps = pylint==2.3.1 |
| 55 | numpy==1.17.2 |
| 56 | recreate = False |
| 57 | skip_install = True |
| 58 | usedevelop = True |
| 59 | setenv = |
| 60 | PYTHONPATH = src |
| 61 | commands = |
| 62 | sh -c "pylint --rcfile=pylintconfig src --output-format=parseable --reports=no > pylint_results.txt || true" |