From b1998cb0b1ed562922f992295dcc1c121273ef07 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 15 Nov 2017 15:05:34 -0800 Subject: Speed up the Travis build. This does two major things: 1. It stores the arm gcc in the repo. The download from the PPA was taking between 2 and 7 minutes. 2. It splits each board into a separate job so they are built in parallel. --- tools/build_adafruit_bins.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/build_adafruit_bins.sh b/tools/build_adafruit_bins.sh index c7488f28a..47fe7c66a 100755 --- a/tools/build_adafruit_bins.sh +++ b/tools/build_adafruit_bins.sh @@ -9,7 +9,13 @@ if [ "$TRAVIS" == "true" ]; then PARALLEL="-j 2" fi -for board in $ATMEL_BOARDS; do +if [ -z "$TRAVIS_BOARD" ]; then + boards=$ATMEL_BOARDS +else + boards=$TRAVIS_BOARD +fi + +for board in $boards; do make $PARALLEL -C ports/atmel-samd BOARD=$board (( exit_status = exit_status || $? )) done @@ -32,7 +38,7 @@ if [ "$TRAVIS" == "true" ]; then fi fi -for board in $ATMEL_BOARDS; do +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 || $? )) -- cgit v1.2.3