mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-09-15 22:43:15 +08:00
Fix sed and add missing parameter in matrix
This commit is contained in:
parent
5a41e65c23
commit
7c66c239fd
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user