From 5da455e39864450157863fdeba27445b6a849043 Mon Sep 17 00:00:00 2001 From: microbuilder Date: Thu, 28 Dec 2017 22:35:03 +0100 Subject: [PATCH 1/2] Added feather52 to travis build list --- .travis.yml | 1 + tools/build_adafruit_bins.sh | 35 +++++++++++++++++------------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 330ace5f2e..8e2bbf3221 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ env: - TRAVIS_BOARD=metro_m4_express - TRAVIS_BOARD=trinket_m0 - TRAVIS_BOARD=gemma_m0 + - TRAVIS_BOARD=feather52 - TRAVIS_TEST=qemu - TRAVIS_TEST=unix diff --git a/tools/build_adafruit_bins.sh b/tools/build_adafruit_bins.sh index 8b749d38f5..ae9c256d24 100755 --- a/tools/build_adafruit_bins.sh +++ b/tools/build_adafruit_bins.sh @@ -2,7 +2,7 @@ rm -rf ports/atmel-samd/build* rm -rf ports/esp8266/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" PARALLEL="-j 5" @@ -17,17 +17,18 @@ else fi for board in $boards; do - make $PARALLEL -C ports/atmel-samd BOARD=$board - (( exit_status = exit_status || $? )) + if [ $board == "feather52" ]; then + make $PARALLEL -C ports/nrf BOARD=feather52 + (( exit_status = exit_status || $? )) + else + make $PARALLEL -C ports/atmel-samd BOARD=$board + (( exit_status = exit_status || $? )) + fi done if [ -z "$TRAVIS" ]; then make $PARALLEL -C ports/esp8266 BOARD=feather_huzzah (( exit_status = exit_status || $? )) fi -if [ -z "$TRAVIS" ]; then - make $PARALLEL -C ports/nrf BOARD=feather52 - (( exit_status = exit_status || $? )) -fi version=`git describe --tags --exact-match` if [ $? -ne 0 ]; then @@ -45,10 +46,15 @@ fi for board in $boards; do mkdir -p bin/$board/ - cp ports/atmel-samd/build-$board/firmware.bin bin/$board/adafruit-circuitpython-$board-$version.bin - (( exit_status = exit_status || $? )) - cp ports/atmel-samd/build-$board/firmware.uf2 bin/$board/adafruit-circuitpython-$board-$version.uf2 - (( exit_status = exit_status || $? )) + 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 + (( exit_status = exit_status || $? )) + cp ports/atmel-samd/build-$board/firmware.uf2 bin/$board/adafruit-circuitpython-$board-$version.uf2 + (( exit_status = exit_status || $? )) + fi # Only upload to Rosie if its a pull request. if [ "$TRAVIS" == "true" ]; then for rosie in $ROSIE_SETUPS; do @@ -65,11 +71,4 @@ if [ -z "$TRAVIS" ]; then (( exit_status = exit_status || $? )) 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 From 7a69382f366155bbb867d6b240646eb92e1b2f4b Mon Sep 17 00:00:00 2001 From: microbuilder Date: Thu, 28 Dec 2017 22:41:38 +0100 Subject: [PATCH 2/2] Added script to download SD files --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8e2bbf3221..c9f5aaa12f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,6 +48,8 @@ before_script: # For teensy build - sudo apt-get install realpath + # For nrf builds + - sudo ports/nrf/drivers/bluetooth/download_ble_stack.sh # For coverage testing (upgrade is used to get latest urllib3 version) - sudo pip install --upgrade cpp-coveralls - gcc --version