forked from arduino-cmake/arduino-cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 1.03 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
38
39
40
language: c
os:
- linux
- osx
env:
matrix:
- ARDUINO_SDK_VERSION=1.6.13
- ARDUINO_SDK_VERSION=1.8.5
addons:
apt:
packages:
- gcc-avr
- binutils-avr
- avr-libc
- avrdude
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export ARDUINO_SDK_FILE="arduino-$ARDUINO_SDK_VERSION-linux32.tar.xz"
else
export ARDUINO_SDK_FILE="arduino-$ARDUINO_SDK_VERSION-macosx.zip"
fi
- wget "https://downloads.arduino.cc/$ARDUINO_SDK_FILE" -O "$ARDUINO_SDK_FILE"
- mkdir arduino-sdk
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
tar xf "$ARDUINO_SDK_FILE" -C arduino-sdk --strip-components 1
export ARDUINO_SDK_PATH="$(pwd)/arduino-sdk"
else
unzip "$ARDUINO_SDK_FILE" "Arduino.app/Contents/Java/*" -d arduino-sdk
export ARDUINO_SDK_PATH="$(pwd)/arduino-sdk/Arduino.app/Contents/Java"
fi
install:
- mkdir build
- rm -rf build/*
- cd build/
script:
- cmake -D ARDUINO_SDK_PATH="$ARDUINO_SDK_PATH" ..
- cat CMakeFiles/CMakeOutput.log
- make