Added feather52 to travis build list

This commit is contained in:
microbuilder 2017-12-28 22:35:03 +01:00
parent 178925640b
commit 5da455e398
2 changed files with 18 additions and 18 deletions

View File

@ -13,6 +13,7 @@ env:
- TRAVIS_BOARD=metro_m4_express - TRAVIS_BOARD=metro_m4_express
- TRAVIS_BOARD=trinket_m0 - TRAVIS_BOARD=trinket_m0
- TRAVIS_BOARD=gemma_m0 - TRAVIS_BOARD=gemma_m0
- TRAVIS_BOARD=feather52
- TRAVIS_TEST=qemu - TRAVIS_TEST=qemu
- TRAVIS_TEST=unix - TRAVIS_TEST=unix

View File

@ -2,7 +2,7 @@ rm -rf ports/atmel-samd/build*
rm -rf ports/esp8266/build* rm -rf ports/esp8266/build*
rm -rf ports/nrf/build* rm -rf ports/nrf/build*
ATMEL_BOARDS="arduino_zero circuitplayground_express feather_m0_basic feather_m0_adalogger feather_m0_express metro_m0_express metro_m4_express trinket_m0 gemma_m0" ATMEL_BOARDS="arduino_zero circuitplayground_express feather_m0_basic feather_m0_adalogger feather_m0_express metro_m0_express metro_m4_express trinket_m0 gemma_m0 feather52"
ROSIE_SETUPS="rosie-ci" ROSIE_SETUPS="rosie-ci"
PARALLEL="-j 5" PARALLEL="-j 5"
@ -17,17 +17,18 @@ else
fi fi
for board in $boards; do for board in $boards; do
if [ $board == "feather52" ]; then
make $PARALLEL -C ports/nrf BOARD=feather52
(( exit_status = exit_status || $? ))
else
make $PARALLEL -C ports/atmel-samd BOARD=$board make $PARALLEL -C ports/atmel-samd BOARD=$board
(( exit_status = exit_status || $? )) (( exit_status = exit_status || $? ))
fi
done done
if [ -z "$TRAVIS" ]; then if [ -z "$TRAVIS" ]; then
make $PARALLEL -C ports/esp8266 BOARD=feather_huzzah make $PARALLEL -C ports/esp8266 BOARD=feather_huzzah
(( exit_status = exit_status || $? )) (( exit_status = exit_status || $? ))
fi fi
if [ -z "$TRAVIS" ]; then
make $PARALLEL -C ports/nrf BOARD=feather52
(( exit_status = exit_status || $? ))
fi
version=`git describe --tags --exact-match` version=`git describe --tags --exact-match`
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@ -45,10 +46,15 @@ fi
for board in $boards; do for board in $boards; do
mkdir -p bin/$board/ mkdir -p bin/$board/
if [ $board == "feather52" ]; then
cp ports/nrf/build-$board/firmware.bin bin/$board/adafruit-circuitpython-$board-$version.bin
(( exit_status = exit_status || $? ))
else
cp ports/atmel-samd/build-$board/firmware.bin bin/$board/adafruit-circuitpython-$board-$version.bin cp ports/atmel-samd/build-$board/firmware.bin bin/$board/adafruit-circuitpython-$board-$version.bin
(( exit_status = exit_status || $? )) (( exit_status = exit_status || $? ))
cp ports/atmel-samd/build-$board/firmware.uf2 bin/$board/adafruit-circuitpython-$board-$version.uf2 cp ports/atmel-samd/build-$board/firmware.uf2 bin/$board/adafruit-circuitpython-$board-$version.uf2
(( exit_status = exit_status || $? )) (( exit_status = exit_status || $? ))
fi
# Only upload to Rosie if its a pull request. # Only upload to Rosie if its a pull request.
if [ "$TRAVIS" == "true" ]; then if [ "$TRAVIS" == "true" ]; then
for rosie in $ROSIE_SETUPS; do for rosie in $ROSIE_SETUPS; do
@ -65,11 +71,4 @@ if [ -z "$TRAVIS" ]; then
(( exit_status = exit_status || $? )) (( exit_status = exit_status || $? ))
fi fi
# Skip nRF52 on Travis
if [ -z "$TRAVIS" ]; then
mkdir -p bin/nrf/
cp ports/nrf/build-feather52/firmware.bin bin/nrf/adafruit-circuitpython-feather_nrf52-$version.bin
(( exit_status = exit_status || $? ))
fi
exit $exit_status exit $exit_status