This repository was archived by the owner on Apr 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -24,20 +24,21 @@ before_install:
2424- mkdir -p "$sdk_path"
2525- cd "$sdk_path/../.." # Get one level above 'arduino-sdk'
2626- |
27- if [[ $TRAVIS_OS_NAME == linux ]]; then
28- sdk_file="arduino-$ARDUINO_SDK_VERSION-linux64.tar.xz"
29- else
30- sdk_file="arduino-$ARDUINO_SDK_VERSION-macosx.zip"
27+ if [[ -z "$(ls -A "$sdk_path")" ]];
28+ then
29+ if [[ $TRAVIS_OS_NAME == linux ]]; then
30+ sdk_file="arduino-$ARDUINO_SDK_VERSION-linux64.tar.xz"
31+ else
32+ sdk_file="arduino-$ARDUINO_SDK_VERSION-macosx.zip"
33+ fi
34+ wget "https://downloads.arduino.cc/$sdk_file" -O "$sdk_file"
35+ if [[ $TRAVIS_OS_NAME == linux ]]; then
36+ tar -xf "$sdk_file" -C arduino-sdk
37+ else
38+ brew install gnu-tar
39+ gtar -xf "$sdk_file" -C arduino-sdk --strip-components=1
40+ fi
3141 fi
32- - wget "https://downloads.arduino.cc/$sdk_file" -O "$sdk_file"
33- - |
34- if [[ $TRAVIS_OS_NAME == linux ]]; then
35- tar xf "$sdk_file" -C arduino-sdk
36- else
37- unzip "$sdk_file" -d arduino-sdk
38- fi
39- - ls -l "$sdk_path"
40- - ls -l "$sdk_path/.."
4142 - export ARDUINO_SDK_PATH="$sdk_path"
4243install :
4344- cd "$TRAVIS_BUILD_DIR"
You can’t perform that action at this time.
0 commit comments