From e17029639ae1f77595e3c7044b5c29e5691a0d08 Mon Sep 17 00:00:00 2001 From: Fokke Zandbergen Date: Thu, 1 Dec 2016 09:15:07 +0100 Subject: [PATCH] Use env for Arduino version --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5e66cbd..f77e335b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,13 @@ language: c +env: + - ARDUINO_VERSION=1.6.13 before_install: - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16" - sleep 3 - export DISPLAY=:1.0 - - wget http://downloads.arduino.cc/arduino-1.6.13-linux64.tar.xz - - tar xf arduino-1.6.13-linux64.tar.xz - - sudo mv arduino-1.6.13 /usr/local/share/arduino + - wget http://downloads.arduino.cc/arduino-$ARDUINO_VERSION-linux64.tar.xz + - tar xf arduino-$ARDUINO_VERSION-linux64.tar.xz + - sudo mv arduino-$ARDUINO_VERSION /usr/local/share/arduino - sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino install: - ln -s $PWD /usr/local/share/arduino/libraries/TheThingsNetwork