2020-12-04 16:11:20 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-02-08 17:27:40 +00:00
|
|
|
HERE=`dirname "$0"`
|
|
|
|
SHA=${GITHUB_SHA:-unknown}
|
|
|
|
cd $HERE
|
|
|
|
|
2020-12-04 16:11:20 +00:00
|
|
|
function finish {
|
2024-02-08 17:27:40 +00:00
|
|
|
./record_video.sh ${T1_CAMERA} ${SHA} stop
|
2020-12-04 16:11:20 +00:00
|
|
|
}
|
|
|
|
trap finish EXIT
|
|
|
|
|
|
|
|
set -e # exit on nonzero exitcode
|
|
|
|
set -x # trace commands
|
|
|
|
|
2024-02-08 17:27:40 +00:00
|
|
|
./record_video.sh ${T1_CAMERA} ${SHA} start
|
2020-12-04 16:11:20 +00:00
|
|
|
(cd ../.. && poetry install)
|
2024-02-08 17:27:40 +00:00
|
|
|
#poetry run python bootstrap.py T1B1 # install official firmware first
|
|
|
|
poetry run python bootstrap.py T1B1 ../../firmware-T1*.bin
|
2020-12-04 16:11:20 +00:00
|
|
|
poetry run pytest ../../tests/device_tests
|