2020-12-04 16:11:20 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
function finish {
|
2021-01-13 23:39:19 +00:00
|
|
|
./record_video.sh ${T1_CAMERA} ${CI_COMMIT_SHORT_SHA} stop
|
2020-12-04 16:11:20 +00:00
|
|
|
ls -l *.mp4
|
|
|
|
}
|
|
|
|
trap finish EXIT
|
|
|
|
|
|
|
|
set -e # exit on nonzero exitcode
|
|
|
|
set -x # trace commands
|
|
|
|
|
2021-01-13 23:39:19 +00:00
|
|
|
# export variables defined in the file
|
|
|
|
set -a
|
|
|
|
source hardware.cfg
|
|
|
|
set +a
|
2020-12-04 16:11:20 +00:00
|
|
|
|
2021-01-13 23:39:19 +00:00
|
|
|
./record_video.sh ${T1_CAMERA} ${CI_COMMIT_SHORT_SHA} start
|
2020-12-04 16:11:20 +00:00
|
|
|
(cd ../.. && poetry install)
|
|
|
|
poetry run python bootstrap.py t1
|
|
|
|
poetry run python bootstrap.py t1 ../../trezor-*.bin
|
|
|
|
poetry run pytest ../../tests/device_tests
|