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,
|
2016-10-17 12:17:18 +00:00
|
|
|
|
|
|
|
[testenv]
|
2017-06-23 17:23:08 +00:00
|
|
|
deps =
|
2018-07-03 16:14:58 +00:00
|
|
|
-rrequirements-dev.txt
|
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
|
2017-06-23 17:23:08 +00:00
|
|
|
python -m compileall trezorlib/
|
2018-07-04 15:40:56 +00:00
|
|
|
# From installed version, smoke-test trezorctl
|
|
|
|
trezorctl --help
|
2018-08-21 16:13:53 +00:00
|
|
|
# Run non-device-dependent tests from installed version
|
2019-06-09 09:23:41 +00:00
|
|
|
python -E -m pytest --pyargs trezorlib.tests.unit_tests
|