-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
.travis.yml
24 lines (24 loc) · 815 Bytes
/
.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
language: generic
env:
global:
- IDE_VERSION=1.8.5
matrix:
- BOARD="arduino:avr:uno"
- BOARD="arduino:samd:mkrzero"
before_install:
- 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
- if [[ "$BOARD" =~ "arduino:samd:" ]]; then
arduino --install-boards arduino:samd;
fi
- arduino --install-library CAN
- buildExampleSketch() { arduino --verbose-build --verify --board $BOARD $PWD/examples/$1/$1.ino; }
install:
- mkdir -p $HOME/Arduino/libraries
- ln -s $PWD $HOME/Arduino/libraries/OBD2
script:
- buildExampleSketch OBD2_01_SupportedPIDs
- buildExampleSketch OBD2_02_KeyStats
- buildExampleSketch OBD2_03_DataPrinter