Skip to content

Commit a1400a7

Browse files
committed
Use Arduino CLI for CI
1 parent ad06600 commit a1400a7

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

.travis.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
language: python
2-
python:
3-
- "2.7"
4-
5-
# Cache PlatformIO packages using Travis CI container-based infrastructure
6-
sudo: false
7-
cache:
8-
directories:
9-
- "~/.platformio"
10-
11-
env:
12-
- PLATFORMIO_CI_SRC=test/TheThingsNetwork.ino
13-
- PLATFORMIO_CI_SRC=test/TheThingsMessage.ino
14-
1+
language: c
2+
before_install:
3+
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
4+
- sleep 3
5+
- export DISPLAY=:1.0
6+
- wget http://downloads.arduino.cc/arduino-1.6.5-linux64.tar.xz
7+
- tar xf arduino-1.6.5-linux64.tar.xz
8+
- sudo mv arduino-1.6.5 /usr/local/share/arduino
9+
- sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
1510
install:
16-
- pip install -U platformio
17-
11+
- ln -s $PWD /usr/local/share/arduino/libraries/TheThingsNetwork
1812
script:
19-
- platformio ci --lib=src --board=leonardo --board=sparkfun_promicro8
13+
- arduino --verify --board arduino:avr:uno $PWD/test/TheThingsMessage.ino
14+
- arduino --verify --board arduino:avr:uno $PWD/test/TheThingsNetwork.ino
15+
notifications:
16+
email:
17+
on_success: change
18+
on_failure: change

0 commit comments

Comments
 (0)