Add travis tag for IDE 1.6.5 and Due 1.6.4

pull/131/head
luc 2015-11-10 20:24:35 +08:00
rodzic 33370f38bc
commit efe073a03d
2 zmienionych plików z 58 dodań i 0 usunięć

39
.travis.yml 100644
Wyświetl plik

@ -0,0 +1,39 @@
sudo: false
language: bash
os:
- linux
before_install:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
before_script:
- "export DISPLAY=:99.0"
- sleep 3 # give xvfb some time to start
- wget http://downloads.arduino.cc/arduino-1.6.5-linux64.tar.xz
- tar xf arduino-1.6.5-linux64.tar.xz
- mv arduino-1.6.5 $HOME/arduino_ide
- mkdir -p $HOME/.arduino15/packages/arduino/hardware/sam
- cd $HOME/.arduino15/packages/arduino/hardware/sam
- wget http://downloads.arduino.cc/cores/sam-1.6.4.tar.bz2
- tar xf sam-1.6.4.tar.bz2
- mkdir -p $HOME/.arduino15/packages/arduino/tools/arm-none-eabi-gcc
- cd $HOME/.arduino15/packages/arduino/tools/arm-none-eabi-gcc
- wget http://downloads.arduino.cc/gcc-arm-none-eabi-4.8.3-2014q1-linux64.tar.gz
- tar xf gcc-arm-none-eabi-4.8.3-2014q1-linux64.tar.gz
- mv gcc-arm-none-eabi-4.8.3-2014q1 4.8.3-2014q1
script:
- cd $TRAVIS_BUILD_DIR
- source command.sh
- export PATH="$HOME/arduino_ide:$PATH"
- arduino --board arduino:sam:arduino_due_x --save-prefs
- arduino --get-pref sketchbook.path
- build_sketch src/ArduinoDUE/Repetier/Repetier.ino
notifications:
email:
on_success: change
on_failure: change

19
command.sh 100644
Wyświetl plik

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