-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
37 lines (37 loc) · 1.87 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: generic
addons:
apt:
packages:
- libc6:i386
- libstdc++6:i386
env:
global:
- IDE_VERSION=1.8.1
before_install:
- /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-$IDE_VERSION-linux64.tar.xz
- tar xf arduino-$IDE_VERSION-linux64.tar.xz
- mv arduino-$IDE_VERSION $HOME/arduino-ide
- export PATH=$PATH:$HOME/arduino-ide
- 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
- #arduino --install-boards arduino:sam >/dev/null
- #arduino --install-boards arduino:samd >/dev/null
- arduino --install-boards RFduino:RFduino >/dev/null
- arduino --install-boards RedBear:nRF51822 >/dev/null
- arduino --install-boards sandeepmistry:nRF5 >/dev/null
- arduino --install-boards arduino:nrf52 >/dev/null
- buildExampleSketch() { arduino --verbose-build --verify --board $1 $PWD/examples/$2/$2.ino; }
install:
- mkdir -p $HOME/Arduino/libraries
- ln -s $PWD $HOME/Arduino/libraries/.
script:
- #buildExampleSketch "arduino:sam:arduino_due_x_dbg" test_all
- #buildExampleSketch "arduino:samd:arduino_zero_edbg" test_all
- buildExampleSketch "RFduino:RFduino:RFduino" test_all
- buildExampleSketch "RedBear:nRF51822:nRF51822" test_all
- buildExampleSketch "RedBear:nRF51822:nRF51822_NANO" test_all
- buildExampleSketch "sandeepmistry:nRF5:Generic_nRF51822:chip=xxac" test_all
- buildExampleSketch "sandeepmistry:nRF5:Generic_nRF52832" test_all
- buildExampleSketch "arduino:nrf52:primo" test_all