Repetier-Firmware-4-Davinci/.travis.yml

60 wiersze
2.9 KiB
YAML

sudo: false
language: bash
os:
- linux
env:
matrix:
- DAVINCI=0 MODEL=0
- DAVINCI=1 MODEL=0
- DAVINCI=2 MODEL=0
- DAVINCI=3 MODEL=0
- DAVINCI=1 MODEL=1
- DAVINCI=2 MODEL=1
- DAVINCI=4 MODEL=1
before_script:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile
--background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
- sleep 3
- export DISPLAY=:1.0
- wget http://downloads.arduino.cc/arduino-1.8.0-linux64.tar.xz
- tar xf arduino-1.8.0-linux64.tar.xz
- mv arduino-1.8.0 $HOME/arduino_ide
- export PATH="$HOME/arduino_ide:$PATH"
- arduino --install-boards arduino:sam:1.6.8
- arduino --board arduino:sam:arduino_due_x --save-prefs
- arduino --pref "compiler.warning_level=all" --save-prefs
- mkdir $TRAVIS_BUILD_DIR/releases
- cp -f "$TRAVIS_BUILD_DIR/src/ArduinoDUE/AdditionalArduinoFiles/Arduino - 1.8.0 -Due
1.6.8/Arduino15/packages/arduino/hardware/sam/1.6.8/variants/arduino_due_x/variant.cpp"
$HOME/.arduino15/packages/arduino/hardware/sam/1.6.8/variants/arduino_due_x/variant.cpp
- cp -f "$TRAVIS_BUILD_DIR/src/ArduinoDUE/AdditionalArduinoFiles/Arduino - 1.8.0 -Due
1.6.8/Arduino15/packages/arduino/hardware/sam/1.6.8/cores/arduino/USB/USBCore.cpp"
$HOME/.arduino15/packages/arduino/hardware/sam/1.6.8/cores/arduino/USB/USBCore.cpp
script:
- cd $TRAVIS_BUILD_DIR
- source command.sh
- sed -i "s/#define DAVINCI /#define DAVINCI $DAVINCI \n\/\//g" ./src/ArduinoDUE/Repetier/Configuration.h
- sed '24!d' ./src/ArduinoDUE/Repetier/Configuration.h
- sed -i "s/#define MODEL /#define MODEL $MODEL\n\/\//g" ./src/ArduinoDUE/Repetier/Configuration.h
- sed '26!d' ./src/ArduinoDUE/Repetier/Configuration.h
- build_sketch ./src/ArduinoDUE/Repetier/Repetier.ino $TRAVIS_BUILD_DIR/releases/$DAVINCI/$MODEL
- cp $TRAVIS_BUILD_DIR/releases/$DAVINCI/$MODEL/Repetier.ino.bin $TRAVIS_BUILD_DIR/releases/Repetier-D$DAVINCI-M$MODEL.bin
after_script:
- zip -r $TRAVIS_BUILD_DIR/repetier.zip $TRAVIS_BUILD_DIR/releases/*.bin
- ls -al $TRAVIS_BUILD_DIR/releases/
- ls -al $TRAVIS_BUILD_DIR/*.zip
notifications:
email:
on_success: change
on_failure: change
deploy:
provider: releases
api_key:
secure: BXxqgVqETLBqEuOT4xb8h7CzY703g+opzXFbI/jekB7Fn0Zgf9T/aiH+N4ijmjmQAvNqcSlS0GzGeuGKDfLoZ61dBVQC6xO1V6MmXFj63wTKsWWQKr8blw2EZ/V6fZ1w1YypX9OoZedI9TWyLKZAarJ6dvvb8Om5dXyJWzmgyqWLd/w5bU0Oxq8CK3a2Axf61wIEukage6OiqyLpvYgcu8O73T6Z+BHScXdWFenmpT1Y6bAIpQkkEgOWR/Vlw2kBwmffwD7CjedsR71MhDpyUNng9Irigek6ywDsU0QIFBQLiUgIF7/otuCep3pili5zpOsQI72zYC1sjauS9EZBCk1fJHOMyODyeAx52uV2TGEGEVHF4a1ppq2NOtEfJofd9fLYzM4LfKOhmz5DdkCfzCMD5/74tpUnfh2BUOzZntQSy3uMNi2sS7uQcN2SKHYtUGa77QDgUoluFhglQVBqiBI5omk+TtqTF35yzigmD18MOWo1Al83sVWYxsXPJ8+G2dxkVSOaUkR1Vej+aBxqefgJkgoyMr7CAVIxyhF82WI88LMvlJ9xukWylh2OJd8ooaUypWEGvRmAcFk4il/ybUNujYupcQvt1ae+b5tXLNwxgJrkBn60fgZd+Pu33LcaSTr8O1x8fhz4VQxIsYRSAz88+mOgd9nLPIHHdCo5HCc=
skip_cleanup: true
file: repetier.zip
on:
repo: luc-github/Repetier-Firmware-0.92
tags: true