2016-11-21 17:40:28 -05:00
|
|
|
rm -rf atmel-samd/build*
|
|
|
|
rm -rf esp8266/build*
|
|
|
|
|
2017-05-01 14:29:51 -04:00
|
|
|
ATMEL_BOARDS="arduino_zero circuitplayground_express feather_m0_basic feather_m0_adalogger feather_m0_express metro_m0_express trinket_m0 gemma_m0"
|
2016-11-29 13:47:11 -05:00
|
|
|
|
|
|
|
for board in $ATMEL_BOARDS; do
|
|
|
|
make -C atmel-samd BOARD=$board
|
2017-04-20 17:04:06 -04:00
|
|
|
(( exit_status = exit_status || $? ))
|
2016-11-29 13:47:11 -05:00
|
|
|
done
|
2017-05-01 17:40:50 -04:00
|
|
|
if [ -z "$TRAVIS" ]; then
|
2017-04-20 18:14:37 -04:00
|
|
|
make -C esp8266 BOARD=feather_huzzah
|
|
|
|
(( exit_status = exit_status || $? ))
|
|
|
|
fi
|
2016-11-21 17:40:28 -05:00
|
|
|
|
|
|
|
version=`git describe --tags --exact-match`
|
|
|
|
if [ $? -ne 0 ]; then
|
2017-04-20 17:04:06 -04:00
|
|
|
version=`date +%Y%m%d`-`git rev-parse --short HEAD`
|
2016-11-21 17:40:28 -05:00
|
|
|
fi
|
|
|
|
|
2016-11-29 13:47:11 -05:00
|
|
|
for board in $ATMEL_BOARDS; do
|
2017-04-20 17:04:06 -04:00
|
|
|
mkdir -p bin/$board/
|
|
|
|
cp atmel-samd/build-$board/firmware.bin bin/$board/adafruit-circuitpython-$board-$version.bin
|
|
|
|
(( exit_status = exit_status || $? ))
|
2017-05-15 18:44:43 -04:00
|
|
|
cp atmel-samd/build-$board/firmware.uf2 bin/$board/adafruit-circuitpython-$board-$version.uf2
|
2017-04-20 17:04:06 -04:00
|
|
|
(( exit_status = exit_status || $? ))
|
2016-11-29 13:47:11 -05:00
|
|
|
done
|
2017-04-20 18:14:37 -04:00
|
|
|
|
|
|
|
# Skip ESP8266 on Travis
|
2017-05-01 17:40:50 -04:00
|
|
|
if [ -z "$TRAVIS" ]; then
|
2017-04-20 18:14:37 -04:00
|
|
|
mkdir -p bin/esp8266/
|
|
|
|
cp esp8266/build/firmware-combined.bin bin/esp8266/adafruit-circuitpython-feather_huzzah-$version.bin
|
|
|
|
(( exit_status = exit_status || $? ))
|
|
|
|
fi
|
2017-04-20 17:04:06 -04:00
|
|
|
|
|
|
|
exit $exit_status
|