2016-10-17 12:17:18 +00:00
|
|
|
[tox]
|
2017-06-23 17:23:08 +00:00
|
|
|
envlist =
|
2020-09-23 13:22:11 +00:00
|
|
|
# py35, XXX revisit, see also https://github.com/trezor/trezor-firmware/issues/810
|
2017-06-23 17:23:08 +00:00
|
|
|
py36,
|
2018-10-01 11:52:41 +00:00
|
|
|
py37,
|
2019-08-09 16:08:35 +00:00
|
|
|
py38,
|
2016-10-17 12:17:18 +00:00
|
|
|
|
|
|
|
[testenv]
|
2017-06-23 17:23:08 +00:00
|
|
|
deps =
|
2019-08-09 16:08:35 +00:00
|
|
|
-rrequirements.txt
|
|
|
|
pytest>=3.6
|
|
|
|
pytest-random-order
|
2019-09-10 13:31:03 +00:00
|
|
|
importlib-metadata!=0.21
|
2017-06-23 17:23:08 +00:00
|
|
|
commands =
|
2018-07-04 15:40:56 +00:00
|
|
|
# Generate local files
|
2018-08-21 16:13:53 +00:00
|
|
|
python setup.py build
|
2018-07-04 15:40:56 +00:00
|
|
|
# Working in the local directory, try to compile all bytecode
|
2019-08-09 16:08:35 +00:00
|
|
|
python -m compileall src tests
|
|
|
|
# Smoke-test trezorctl
|
2018-07-04 15:40:56 +00:00
|
|
|
trezorctl --help
|
2019-08-09 16:08:35 +00:00
|
|
|
# Run test suite
|
|
|
|
pytest --random-order tests
|