2016-10-17 12:17:18 +00:00
|
|
|
[tox]
|
2017-06-23 17:23:08 +00:00
|
|
|
envlist =
|
2018-03-09 09:58:24 +00:00
|
|
|
py33,
|
2017-06-23 17:23:08 +00:00
|
|
|
py34,
|
|
|
|
py35,
|
|
|
|
py36,
|
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
|
|
|
|
python setup.py prebuild
|
|
|
|
# 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
|
|
|
|
# Run non-device-dependent tests
|
2017-12-19 09:26:36 +00:00
|
|
|
python -m pytest --pyarg trezorlib.tests.unit_tests
|
2018-07-04 15:40:56 +00:00
|
|
|
# This whole thing is a hack, as the tests run against the cwd version of
|
|
|
|
# python-trezor, as opposed to what is installed.
|
|
|
|
# A better solution would be to put `trezorlib` into `src`. But that's not done yet
|