Skip to content

Commit 8944955

Browse files
committed
- add Travis CI
1 parent 0f49103 commit 8944955

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.travis.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Arduino BLEPeripheral
22

3-
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sandeepmistry/arduino-BLEPeripheral?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3+
[![Build Status](https://travis-ci.org/sandeepmistry/arduino-BLEPeripheral.svg?branch=master)](https://travis-ci.org/sandeepmistry/arduino-BLEPeripheral) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sandeepmistry/arduino-BLEPeripheral?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44

55

66
An [Arduino](http://arduino.cc) library for creating custom BLE peripherals with [Nordic Semiconductor](http://www.nordicsemi.com)'s [nRF8001](http://www.nordicsemi.com/eng/Products/Bluetooth-R-low-energy/nRF8001) or [nR51822](http://www.nordicsemi.com/eng/Products/Bluetooth-R-low-energy/nRF51822).

0 commit comments

Comments
 (0)