summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-11-15 15:05:34 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-11-15 21:31:21 -0800
commitb1998cb0b1ed562922f992295dcc1c121273ef07 (patch)
tree5cbebbae407aaeb78b13e3ab432debcdae37a39f /tools
parent2d0d1ef5f288afae3de97da4c094d3d0414da630 (diff)
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build_adafruit_bins.sh10
1 files changed, 8 insertions, 2 deletions
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 || $? ))