mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-14 16:15:59 +08:00
Add missing command.sh for travis
This commit is contained in:
parent
6be5610402
commit
310672ae74
19
command.sh
Normal file
19
command.sh
Normal 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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user