Skip to content

Commit 310672a

Browse files
committed
Add missing command.sh for travis
1 parent 6be5610 commit 310672a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

command.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
function build_sketch()
4+
{
5+
local sketch=$1
6+
7+
# buld sketch with arudino ide
8+
echo -e "\n Build $sketch \n"
9+
arduino --verbose --verify $sketch
10+
11+
# get build result from arduino
12+
local re=$?
13+
14+
# check result
15+
if [ $re -ne 0 ]; then
16+
echo "Failed to build $sketch"
17+
return $re
18+
fi
19+
}

0 commit comments

Comments
 (0)