2017-12-17 16:00:32 +00:00
|
|
|
#!/bin/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
|
2018-06-25 16:09:52 +00:00
|
|
|
|
2018-03-22 17:53:54 +00:00
|
|
|
if [ "$EMULATOR" != 1 ]; then
|
2018-06-25 16:09:52 +00:00
|
|
|
make -C bootloader align
|
2018-03-22 17:53:54 +00:00
|
|
|
fi
|
2018-06-25 16:09:52 +00:00
|
|
|
|
2017-12-17 16:00:32 +00:00
|
|
|
make -C vendor/nanopb/generator/proto
|
|
|
|
make -C firmware/protob
|
|
|
|
|
2019-02-23 18:02:27 +00:00
|
|
|
make -C firmware
|
|
|
|
|
|
|
|
if [ "$EMULATOR" != 1 ]; then
|
|
|
|
make -C firmware sign
|
|
|
|
fi
|