Fix sed and add missing parameter in matrix

This commit is contained in:
Luc 2019-08-10 21:24:29 +02:00
parent 5a41e65c23
commit 7c66c239fd
2 changed files with 8 additions and 8 deletions

View File

@ -51,7 +51,7 @@ before_script:
- export PATH="$HOME/arduino_ide:$PATH"
script:
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino $TARGET $PLATFORM $BT $AUTHENTICATION
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino $TARGET $PLATFORM $BT $AUTHENTICATION $FILESYSTEM
notifications:
email:

View File

@ -7,7 +7,7 @@ function build_sketch()
local ide=$3
local bt=$4
local auth=$5
local filessystem=$6
local fs=$6
if [[ "$ide" == "arduino" ]];
then
@ -36,13 +36,13 @@ function build_sketch()
echo "setup for esp8266"
arduino --board esp8266com:esp8266:generic:eesz=4M3M,xtal=160,FlashMode=dio,FlashFreq=40,sdk=nonosdk221,ip=lm2f,dbg=Disabled,vt=flash,exception=disabled,ssl=basic --save-prefs
fi
if [[ "$filessystem" == "SPIFFS" ]];
if [[ "$6" == "SPIFFS" ]];
then
echo "Set Filesystem to SPIFFS"
sed -i "s/\/\/#define FILESYSTEM_FEATURE ESP_FAT_FILESYSTEM/#define FILESYSTEM_FEATURE ESP_SPIFFS_FILESYSTEM/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
sed -i "s/\/\/#define FILESYSTEM_FEATURE ESP_LITTLEFS_FILESYSTEM/#define FILESYSTEM_FEATURE ESP_SPIFFS_FILESYSTEM/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
fi
if [[ "$filessystem" == "FAT" ]];
if [[ "$6" == "FAT" ]];
then
echo "Set Filesystem to FAT"
sed -i "s/\/\/#define FILESYSTEM_FEATURE ESP_SPIFFS_FILESYSTEM/#define FILESYSTEM_FEATURE ESP_FAT_FILESYSTEM/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h