|
| 1 | +language: generic |
| 2 | +addons: |
| 3 | + apt: |
| 4 | + packages: |
| 5 | + - libc6:i386 |
| 6 | + - libstdc++6:i386 |
| 7 | +env: |
| 8 | + global: |
| 9 | + - IDE_VERSION=1.6.12 |
| 10 | +before_install: |
| 11 | + - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16 |
| 12 | + - sleep 3 |
| 13 | + - export DISPLAY=:1.0 |
| 14 | + - wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz |
| 15 | + - tar xf arduino-$IDE_VERSION-linux64.tar.xz |
| 16 | + - mv arduino-$IDE_VERSION $HOME/arduino-ide |
| 17 | + - export PATH=$PATH:$HOME/arduino-ide |
| 18 | + - arduino --pref "boardsmanager.additional.urls=https://redbearlab.github.io/arduino/package_redbearlab_index.json,http://rfduino.com/package_rfduino166_index.json,https://redbearlab.github.io/arduino/package_redbearlab_index.json,https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json" --save-prefs |
| 19 | + - arduino --install-boards arduino:sam >/dev/null |
| 20 | + - arduino --install-boards arduino:samd >/dev/null |
| 21 | + - arduino --install-boards RedBearLab:avr >/dev/null |
| 22 | + - arduino --install-boards RFduino:RFduino >/dev/null |
| 23 | + - arduino --install-boards RedBearLab:nRF51822 >/dev/null |
| 24 | + - arduino --install-boards sandeepmistry:nRF5 >/dev/null |
| 25 | + - buildExampleSketch() { arduino --verbose-build --verify --board $1 $PWD/examples/$2/$2.ino; } |
| 26 | +install: |
| 27 | + - mkdir -p $HOME/Arduino/libraries |
| 28 | + - ln -s $PWD $HOME/Arduino/libraries/. |
| 29 | +script: |
| 30 | + - buildExampleSketch "arduino:avr:uno" starter |
| 31 | + - buildExampleSketch "arduino:avr:leonardo" starter |
| 32 | + - buildExampleSketch "arduino:avr:mega:cpu=atmega2560" starter |
| 33 | + - buildExampleSketch "arduino:sam:arduino_due_x_dbg" starter |
| 34 | + - buildExampleSketch "arduino:samd:arduino_zero_edbg" starter |
| 35 | + - buildExampleSketch "RedBearLab:avr:blend" starter |
| 36 | + - buildExampleSketch "RFduino:RFduino:RFduino" starter |
| 37 | + - buildExampleSketch "RedBearLab:nRF51822:nRF51822" starter |
| 38 | + - buildExampleSketch "RedBearLab:nRF51822:nRF51822_NANO" starter |
| 39 | + - buildExampleSketch "sandeepmistry:nRF5:nRF52DK:softdevice=s132" starter |
| 40 | + - buildExampleSketch "sandeepmistry:nRF5:BluzDK:softdevice=s110" starter |
| 41 | + - buildExampleSketch "sandeepmistry:nRF5:BluzDK:softdevice=s130" starter |
0 commit comments