Tests Nano, Leonardo, and Mega (CI)

I know the Uno and Nano should be the same build process, just being thorough.
This commit is contained in:
David Madison 2018-10-18 17:03:19 -04:00
parent 67803756af
commit 5e16a0a6c4
1 changed files with 11 additions and 4 deletions

View File

@ -4,8 +4,7 @@ env:
- IDE_VERSION=1.8.1 - IDE_VERSION=1.8.1
matrix: matrix:
include: include:
- name: "Arduino Uno - WS2812B" - name: "WS2812B"
env: BOARD=arduino:avr:uno
before_install: before_install:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16" - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
@ -22,7 +21,7 @@ before_install:
- arduino --install-library "FastLED:3.2.0" - arduino --install-library "FastLED:3.2.0"
# Sketch Compiling Functions # Sketch Compiling Functions
- CYAN="\033[36m"; NOC="\033[0m"; - CYAN="\033[36m"; YELLOW="\033[33m"; NOC="\033[0m";
- buildSketchPath() { - buildSketchPath() {
echo -e "\n${CYAN}Building sketch ${1##*/}${NOC}"; echo -e "\n${CYAN}Building sketch ${1##*/}${NOC}";
arduino --verify --board $BOARD "$1"; arduino --verify --board $BOARD "$1";
@ -33,9 +32,17 @@ before_install:
buildSketchPath $f; buildSketchPath $f;
done; done;
} }
- buildBoard() {
export BOARD="$1";
echo -e "\n${YELLOW}Now using board $BOARD${NOC}";
buildAllSketches;
}
script: script:
- buildAllSketches - buildBoard "arduino:avr:uno"
- buildBoard "arduino:avr:nano:cpu=atmega328"
- buildBoard "arduino:avr:leonardo"
- buildBoard "arduino:avr:mega:cpu=atmega2560"
notifications: notifications:
email: email: