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

Commit d91fdbd

Browse files
committed
Fixed SDK base path for OS X builds.
Fixed tar/unzip export targets.
1 parent 0edcaca commit d91fdbd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.travis.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ os:
55
- osx
66
env:
77
global:
8-
- ARDUINO_SDK_BASE_PATH=/home/travis/arduino-sdk/arduino
8+
- ARDUINO_SDK_BASE_PATH=arduino-sdk/arduino
99
matrix:
1010
- ARDUINO_SDK_VERSION=1.6.10
1111
- ARDUINO_SDK_VERSION=1.8.7
1212
cache:
1313
directories:
14-
- $ARDUINO_SDK_BASE_PATH-$ARDUINO_SDK_VERSION
14+
- $HOME/$ARDUINO_SDK_BASE_PATH-$ARDUINO_SDK_VERSION
1515
addons:
1616
apt:
1717
packages:
@@ -20,9 +20,9 @@ addons:
2020
- avrdude
2121
- cmake
2222
before_install:
23-
- sdk_path="$ARDUINO_SDK_BASE_PATH-$ARDUINO_SDK_VERSION"
23+
- sdk_path="$HOME/$ARDUINO_SDK_BASE_PATH-$ARDUINO_SDK_VERSION"
2424
- mkdir -p "$sdk_path"
25-
- cd "$sdk_path/.." # Get to arduino-sdk
25+
- cd "$sdk_path/../.." # Get one level above 'arduino-sdk'
2626
- |
2727
if [[ $TRAVIS_OS_NAME == linux ]]; then
2828
sdk_file="arduino-$ARDUINO_SDK_VERSION-linux64.tar.xz"
@@ -32,10 +32,13 @@ before_install:
3232
- wget "https://downloads.arduino.cc/$sdk_file" -O "$sdk_file"
3333
- |
3434
if [[ $TRAVIS_OS_NAME == linux ]]; then
35-
tar xf "$sdk_file" --strip-components 1
35+
tar xf "$sdk_file" -C arduino-sdk --strip-components 1
3636
else
37-
unzip "$sdk_file"
37+
unzip "$sdk_file" -d arduino-sdk
3838
fi
39+
- ls -l "$sdk_path"
40+
- ls -l "$sdk_path/.."
41+
- ls -l "$sdk_path/../.."
3942
- export ARDUINO_SDK_PATH="$sdk_path"
4043
install:
4144
- cd "$TRAVIS_BUILD_DIR"

0 commit comments

Comments
 (0)