You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/legacy/script/cibuild

30 lines
513 B

#!/usr/bin/env bash
# script/cibuild: Setup environment for CI to run tests. This is primarily
# designed to run on the continuous integration server.
set -e
cd "$(dirname "$0")/.."
if [ "$EMULATOR" = 1 ]; then
make -C emulator
else
make -C vendor/libopencm3 lib/stm32/f2
fi
make
if [ "$EMULATOR" != 1 ]; then
make -C bootloader align
fi
make -C vendor/nanopb/generator/proto
make -C firmware/protob
make -C firmware
if [ "$EMULATOR" != 1 ]; then
make -C firmware sign
fi