travis-ci: pull arduino library install into a separate script
MODIFY
.travis.yml
.travis.yml
@@ -11,6 +11,7 @@ cache:
directories:
- ~/arduino_ide
- ~/.arduino15/packages/
+ - ~/Arduino
env:
global:
@@ -22,18 +23,7 @@ before_install:
- source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/platform_check_only_if_file/install.sh)
install:
- - arduino --install-library "Adafruit ILI9341"
- - arduino --install-library "Adafruit GFX Library"
- - arduino --install-library "FastLED"
- - arduino --install-library "Adafruit NeoTrellis M4 Library"
- - arduino --install-library "Adafruit Keypad"
- - arduino --install-library "Adafruit NeoPixel"
- - arduino --install-library "Adafruit DMA neopixel library"
- - arduino --install-library "Adafruit NeoMatrix"
- - arduino --install-library "Adafruit Zero DMA Library"
- - arduino --install-library "MIDIUSB"
- - arduino --install-library "Adafruit SoftServo"
- - arduino --install-library "TinyWireM"
+ - ./arduino_library_install
- pip install --force-reinstall pylint==1.9.2
script:

ADD
arduino_library_install
+#!/bin/bash
+
+[ ! -d $HOME/Arduino/libraries/Adafruit_ILI9341 ] && arduino --install-library "Adafruit ILI9341"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/Adafruit_GFX_Library ] && arduino --install-library "Adafruit GFX Library"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/FastLED ] && arduino --install-library "FastLED"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/Adafruit_NeoTrellis_M4_Library ] && arduino --install-library "Adafruit NeoTrellis M4 Library"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/Adafruit_Keypad ] && arduino --install-library "Adafruit Keypad"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/Adafruit_NeoPixel ] && arduino --install-library "Adafruit NeoPixel"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/Adafruit_DMA_neopixel_library ] && arduino --install-library "Adafruit DMA neopixel library"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/Adafruit_NeoMatrix ] && arduino --install-library "Adafruit NeoMatrix"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/Adafruit_Zero_DMA_Library ] && arduino --install-library "Adafruit Zero DMA Library"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/MIDIUSB ] && arduino --install-library "MIDIUSB"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/Adafruit_SoftServo ] && arduino --install-library "Adafruit SoftServo"
+sleep 1
+[ ! -d $HOME/Arduino/libraries/TinyWireM ] && arduino --install-library "TinyWireM"

travis-ci: pull arduino library install into a separate script