Skip to content

Commit 1bc2bda

Browse files
author
Ilya Dmitrichenko
committed
Get ready to build examples on Travis CI
1 parent 4756829 commit 1bc2bda

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
examples/*/build-*

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: python
2+
before_script:
3+
- "curl -s http://arduino.googlecode.com/files/arduino-${ARDUINO_IDE_VERSION}-linux64.tgz | sudo tar xz -C /opt"
4+
- "git clone -q https://github.com/errordeveloper/hwci-scripts ../hwci-scripts && ../hwci-scripts/bin/setup.sh"
5+
- "git clone -q https://github.com/amcewen/HttpClient ../HttpClient"
6+
script:
7+
- "for e in `ls -d examples/*/` \
8+
;do env \
9+
USER_LIB_PATH=$PWD/../ \
10+
ARDUINO_DIR=/opt/arduino-${ARDUINO_IDE_VERSION} \
11+
../hwci-scripts/bin/arduino_make.sh -C $e -f $PWD/examples/include.mk \
12+
&& echo pass:$e >> results \
13+
|| echo fail:$e >> results \
14+
;done"
15+
- "cat results"
16+
- "cut -d: -f1 results | sort | uniq -c"
17+
- "test `grep -c fail results` -eq 0"
18+
19+
env:
20+
- ARDUINO_IDE_VERSION='1.0.3'

examples/include.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
BOARD_TAG = uno
2+
ARDUINO_PORT = /dev/cu.usb*
3+
ARDUINO_LIBS = Ethernet Ethernet/utility SPI HttpClient cosm-arduino
4+
5+
include Arduino.mk

0 commit comments

Comments
 (0)