From 5e16a0a6c48729f282a1039da82b95984e169829 Mon Sep 17 00:00:00 2001 From: David Madison Date: Thu, 18 Oct 2018 17:03:19 -0400 Subject: [PATCH] Tests Nano, Leonardo, and Mega (CI) I know the Uno and Nano should be the same build process, just being thorough. --- .travis.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6cab7ac..1aae66b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,7 @@ env: - IDE_VERSION=1.8.1 matrix: include: - - name: "Arduino Uno - WS2812B" - env: BOARD=arduino:avr:uno + - name: "WS2812B" 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" @@ -22,7 +21,7 @@ before_install: - arduino --install-library "FastLED:3.2.0" # Sketch Compiling Functions - - CYAN="\033[36m"; NOC="\033[0m"; + - CYAN="\033[36m"; YELLOW="\033[33m"; NOC="\033[0m"; - buildSketchPath() { echo -e "\n${CYAN}Building sketch ${1##*/}${NOC}"; arduino --verify --board $BOARD "$1"; @@ -33,9 +32,17 @@ before_install: buildSketchPath $f; done; } + - buildBoard() { + export BOARD="$1"; + echo -e "\n${YELLOW}Now using board $BOARD${NOC}"; + buildAllSketches; + } script: - - buildAllSketches + - buildBoard "arduino:avr:uno" + - buildBoard "arduino:avr:nano:cpu=atmega328" + - buildBoard "arduino:avr:leonardo" + - buildBoard "arduino:avr:mega:cpu=atmega2560" notifications: email: