mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-12 10:39:00 +00:00
825ccd9df5
[no changelog]
33 lines
637 B
Bash
Executable File
33 lines
637 B
Bash
Executable File
#!/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
|
|
fi
|
|
|
|
# invoking nanopb_generator to make sure its proto files are generated
|
|
nanopb_generator >/dev/null || true
|
|
make -C firmware/protob
|
|
|
|
make -C firmware
|
|
|
|
if [ "$EMULATOR" != 1 ]; then
|
|
make -C firmware sign
|
|
make -C intermediate_fw
|
|
make -C intermediate_fw sign
|
|
fi
|