mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
dedca1bb13
Running ffmpeg in a subshell and killing it in exit trap handler should ensure video availability even when bootstrap or pytest fail.
21 lines
488 B
Bash
Executable File
21 lines
488 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function finish {
|
|
./record_video.sh ${CI_COMMIT_SHORT_SHA} stop
|
|
ls -l *.mp4
|
|
}
|
|
trap finish EXIT
|
|
|
|
set -e # exit on nonzero exitcode
|
|
set -x # trace commands
|
|
|
|
|
|
./record_video.sh ${CI_COMMIT_SHORT_SHA} start
|
|
(cd ../.. && poetry install)
|
|
poetry run trezorctl -v list
|
|
export TREZOR_PATH=$(./get_trezor_path.sh 'Trezor 1')
|
|
echo $TREZOR_PATH
|
|
poetry run python bootstrap.py t1
|
|
poetry run python bootstrap.py t1 ../../trezor-*.bin
|
|
poetry run pytest ../../tests/device_tests
|