Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 6bc9ddc

Browse files
committed
Cleaned '.travis' file.
1 parent e0641db commit 6bc9ddc

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

.travis.yml

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
language: cpp
22
os:
3-
- linux
4-
- osx
3+
- linux
4+
- osx
55
env:
6-
matrix:
7-
- ARDUINO_SDK_VERSION=1.6.0
8-
- ARDUINO_SDK_VERSION=1.8.5
6+
- ARDUINO_SDK_VERSION=1.6.0
7+
- ARDUINO_SDK_VERSION=1.8.5
98
addons:
109
apt:
1110
packages:
12-
- gcc-avr
13-
- binutils-avr
14-
- avr-libc
15-
- avrdude
11+
- gcc-avr
12+
- binutils-avr
13+
- avr-libc
14+
- avrdude
15+
- cmake
1616
before_install:
17-
- |
18-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
19-
export ARDUINO_SDK_FILE="arduino-$ARDUINO_SDK_VERSION-linux32.tar.xz"
20-
else
21-
export ARDUINO_SDK_FILE="arduino-$ARDUINO_SDK_VERSION-macosx.zip"
22-
fi
23-
- wget "https://downloads.arduino.cc/$ARDUINO_SDK_FILE" -O "$ARDUINO_SDK_FILE"
24-
- mkdir arduino-sdk
25-
- |
26-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
27-
tar xf "$ARDUINO_SDK_FILE" -C arduino-sdk --strip-components 1
28-
export ARDUINO_SDK_PATH="$(pwd)/arduino-sdk"
29-
else
30-
unzip "$ARDUINO_SDK_FILE" "Arduino.app/Contents/Java/*" -d arduino-sdk
31-
export ARDUINO_SDK_PATH="$(pwd)/arduino-sdk/Arduino.app/Contents/Java"
32-
fi
17+
- |
18+
if [[ $TRAVIS_OS_NAME == linux ]]; then
19+
export ARDUINO_SDK_FILE="arduino-$ARDUINO_SDK_VERSION-linux32.tar.xz"
20+
else
21+
export ARDUINO_SDK_FILE="arduino-$ARDUINO_SDK_VERSION-macosx.zip"
22+
brew install cmake
23+
fi
24+
- wget "https://downloads.arduino.cc/$ARDUINO_SDK_FILE" -O "$ARDUINO_SDK_FILE"
25+
- mkdir arduino-sdk
26+
- |
27+
if [[ $TRAVIS_OS_NAME == linux ]]; then
28+
tar xf "$ARDUINO_SDK_FILE" -C arduino-sdk --strip-components 1
29+
export ARDUINO_SDK_PATH="$(pwd)/arduino-sdk"
30+
else
31+
unzip "$ARDUINO_SDK_FILE" "Arduino.app/Contents/Java/*" -d arduino-sdk
32+
export ARDUINO_SDK_PATH="$(pwd)/arduino-sdk/Arduino.app/Contents/Java"
33+
fi
3334
install:
34-
- mkdir build
35-
- rm -rf build/*
36-
- cd build/
35+
- mkdir build
36+
- rm -rf build/*
37+
- cd build/
3738
script:
3839
- cmake -D ARDUINO_SDK_PATH="$ARDUINO_SDK_PATH" -D CMAKE_TOOLCHAIN_FILE="../cmake/Arduino-Toolchain.cmake" ..
39-
- make
40+
- make
4041
after_script:
41-
- cat CMakeFiles/CMakeOutput.log
42+
- cat CMakeFiles/CMakeOutput.log

0 commit comments

Comments
 (0)