Skip to content

Commit b61da61

Browse files
committed
update travis ci script for downloading latest version of arduino
1 parent d546360 commit b61da61

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

script/install.sh

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,21 @@
22

33
echo "Installing dependencies needed to build the sources and tests..."
44

5-
ARDUINO_BASENAME="arduino-1.0.6"
6-
ARDUINO_FILE="$ARDUINO_BASENAME-linux64.tgz"
7-
ARDUINO_URL="http://arduino.cc/download.php?f=/$ARDUINO_FILE"
8-
9-
AVR_GCC_BASENAME="arduino-1.5.8"
10-
AVR_GCC_FILE="$AVR_GCC_BASENAME-linux64.tgz"
11-
AVR_GCC_URL="http://arduino.cc/download.php?f=/$AVR_GCC_FILE"
12-
13-
echo "Installing Arduino 1.0.6..."
5+
ARDUINO_BASENAME="arduino-1.8.9"
6+
ARDUINO_FILE="$ARDUINO_BASENAME-linux64.tar.xz"
7+
ARDUINO_URL="https://downloads.arduino.cc/$ARDUINO_FILE"
148

9+
echo "Downloading $ARDUINO_BASENAME from $ARDUINO_URL"
1510
wget "$ARDUINO_URL" -O "$ARDUINO_FILE"
11+
12+
echo "Unzipping $ARDUINO_BASENAME"
1613
tar -xzf "$ARDUINO_FILE"
17-
sudo mv "$ARDUINO_BASENAME/" "$ARDUINO"
1814

19-
echo "Installing avr-gcc from Arduino 1.5.8..."
15+
echo "Installing avr-gcc to $AVR_GCC"
16+
sudo mv "$ARDUINO_BASENAME/hardware/tools/avr" "$AVR_GCC"
2017

21-
wget "$AVR_GCC_URL" -O "$AVR_GCC_FILE"
22-
tar -xzf "$AVR_GCC_FILE"
23-
sudo mv "$AVR_GCC_BASENAME/hardware/tools/avr" "$AVR_GCC"
18+
echo "Install Arduino to $ARDUINO"
19+
sudo mv "$ARDUINO_BASENAME/" "$ARDUINO"
2420

2521
echo "Installation of dependencies is complete, we are now going to run some tests..."
2622

0 commit comments

Comments
 (0)