From 310672ae74a0550c3caf57af3413885a105c7105 Mon Sep 17 00:00:00 2001 From: luc Date: Tue, 10 Nov 2015 13:42:44 +0800 Subject: [PATCH] Add missing command.sh for travis --- command.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 command.sh diff --git a/command.sh b/command.sh new file mode 100644 index 00000000..e366f20e --- /dev/null +++ b/command.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +function build_sketch() +{ + local sketch=$1 + + # buld sketch with arudino ide + echo -e "\n Build $sketch \n" + arduino --verbose --verify $sketch + + # get build result from arduino + local re=$? + + # check result + if [ $re -ne 0 ]; then + echo "Failed to build $sketch" + return $re + fi +}