This commit is contained in:
Thomas Kunze 2019-06-12 21:27:15 +02:00
parent 7a0a3d30ac
commit ea88945f18

View File

@ -31,8 +31,12 @@ before_install:
- if [ "$MODE" = "ARDUINO" ]; then source <(curl -SLs "https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh"); fi - if [ "$MODE" = "ARDUINO" ]; then source <(curl -SLs "https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh"); fi
- if [ "$MODE" = "ARDUINO" ]; then downloadArduinoLib FlashStorage "https://github.com/thelsing/FlashStorage/archive/master.zip"; fi - if [ "$MODE" = "ARDUINO" ]; then downloadArduinoLib FlashStorage "https://github.com/thelsing/FlashStorage/archive/master.zip"; fi
- if [ "$MODE" = "ARDUINO" ]; then downloadArduinoLib BSEC "https://github.com/BoschSensortec/BSEC-Arduino-library/archive/master.zip"; fi - if [ "$MODE" = "ARDUINO" ]; then downloadArduinoLib BSEC "https://github.com/BoschSensortec/BSEC-Arduino-library/archive/master.zip"; fi
# only default warning level
- if [ "$MODE" = "ARDUINO" ]; then sed -i 's#compiler.warning_level=all#compiler.warning_level=default#' ~/.arduino15/preferences.txt; fi - if [ "$MODE" = "ARDUINO" ]; then sed -i 's#compiler.warning_level=all#compiler.warning_level=default#' ~/.arduino15/preferences.txt; fi
# changes for bsec lib
- if [ "$MODE" = "ARDUINO" ]; then sed -ri 's#^recipe.c.combine.pattern=([^$]*)\{archive_file\}" -Wl,--end-group#recipe.c.combine.pattern=\1\{archive_file\}" {compiler.libraries.ldflags} -Wl,--end-group#' ~/.arduino15/packages/arduino/hardware/samd/1.6.21/platform.txt; fi - if [ "$MODE" = "ARDUINO" ]; then sed -ri 's#^recipe.c.combine.pattern=([^$]*)\{archive_file\}" -Wl,--end-group#recipe.c.combine.pattern=\1\{archive_file\}" {compiler.libraries.ldflags} -Wl,--end-group#' ~/.arduino15/packages/arduino/hardware/samd/1.6.21/platform.txt; fi
- if [ "$MODE" = "ARDUINO" ]; then sed -i 's#compiler.elf2hex.extra_flags=#compiler.elf2hex.extra_flags=\ncompiler.libraries.ldflags=#' ~/.arduino15/packages/arduino/hardware/samd/1.6.21/platform.txt; fi
# the HDC100X lib is not properly set up in githup so move things around a bit # the HDC100X lib is not properly set up in githup so move things around a bit
- if [ "$MODE" = "ARDUINO" ]; then rm -rf $HOME/arduino_ide/libraries/HDC100X_Arduino_Library-master; fi - if [ "$MODE" = "ARDUINO" ]; then rm -rf $HOME/arduino_ide/libraries/HDC100X_Arduino_Library-master; fi