Add missing command.sh for travis

This commit is contained in:
luc 2015-11-10 13:42:44 +08:00
parent 6be5610402
commit 310672ae74

19
command.sh Normal file
View File

@ -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
}