2016-10-17 12:17:18 +00:00
|
|
|
[tox]
|
2017-06-23 17:23:08 +00:00
|
|
|
envlist =
|
|
|
|
py35,
|
|
|
|
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
|
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
|