mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-04-23 06:10:00 +08:00
test of Parallelizing builds in travis
This commit is contained in:
parent
ce41d7f2ed
commit
e18eb686fb
31
.travis.yml
31
.travis.yml
@ -17,6 +17,11 @@ cache:
|
|||||||
install:
|
install:
|
||||||
- pip install -U platformio
|
- pip install -U platformio
|
||||||
|
|
||||||
|
env:
|
||||||
|
- TARGET=esp32 PLATFORM=arduino
|
||||||
|
- TARGET=esp8266 PLATFORM=arduino
|
||||||
|
- TARGET=all PLATFORM=PIO
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- platformio update
|
- platformio update
|
||||||
- wget http://downloads.arduino.cc/arduino-1.8.5-linux64.tar.xz
|
- wget http://downloads.arduino.cc/arduino-1.8.5-linux64.tar.xz
|
||||||
@ -39,31 +44,13 @@ before_script:
|
|||||||
- cp -r $TRAVIS_BUILD_DIR/libraries/DHT_sensor_library_for_ESPx-1.0.6 $HOME/arduino_ide/libraries/
|
- cp -r $TRAVIS_BUILD_DIR/libraries/DHT_sensor_library_for_ESPx-1.0.6 $HOME/arduino_ide/libraries/
|
||||||
- cp -r $TRAVIS_BUILD_DIR/libraries/esp8266-oled-ssd1306-4.0.0 $HOME/arduino_ide/libraries/
|
- cp -r $TRAVIS_BUILD_DIR/libraries/esp8266-oled-ssd1306-4.0.0 $HOME/arduino_ide/libraries/
|
||||||
- cp -r $TRAVIS_BUILD_DIR/libraries/TFT_eSPI-1.4.11 $HOME/arduino_ide/libraries/
|
- cp -r $TRAVIS_BUILD_DIR/libraries/TFT_eSPI-1.4.11 $HOME/arduino_ide/libraries/
|
||||||
|
|
||||||
script:
|
|
||||||
- cd $TRAVIS_BUILD_DIR
|
- cd $TRAVIS_BUILD_DIR
|
||||||
- source command.sh
|
- source command.sh
|
||||||
- export PATH="$HOME/arduino_ide:$PATH"
|
- export PATH="$HOME/arduino_ide:$PATH"
|
||||||
- rm -f $HOME/.arduino15/preferences.txt
|
|
||||||
- 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
|
script:
|
||||||
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino
|
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino $TARGET $PLATFORM
|
||||||
- rm -f $HOME/.arduino15/preferences.txt
|
|
||||||
- arduino --board esp32:esp32:esp32:PartitionScheme=min_spiffs,FlashFreq=80,PSRAM=disabled,CPUFreq=240,FlashMode=qio,FlashSize=4M,DebugLevel=none --pref compiler.warning_level=all --save-prefs
|
|
||||||
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino
|
|
||||||
- sed -i "s/\/\/#define BLUETOOTH_FEATURE/#define BLUETOOTH_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
|
||||||
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino
|
|
||||||
- sed -i "s/\/\/#define AUTHENTICATION_FEATURE /#define AUTHENTICATION_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
|
||||||
- rm -f $HOME/.arduino15/preferences.txt
|
|
||||||
- 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
|
|
||||||
- sed -i "s/#define BLUETOOTH_FEATURE/\/\/#define BLUETOOTH_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
|
||||||
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino
|
|
||||||
- rm -f $HOME/.arduino15/preferences.txt
|
|
||||||
- arduino --board esp32:esp32:esp32:PartitionScheme=min_spiffs,FlashFreq=80,PSRAM=disabled,CPUFreq=240,FlashMode=qio,FlashSize=4M,DebugLevel=none --pref compiler.warning_level=all --save-prefs
|
|
||||||
- build_sketch $TRAVIS_BUILD_DIR/esp3d/esp3d.ino
|
|
||||||
- rm -fr $HOME/arduino_ide
|
|
||||||
- rm -fr $HOME/.arduino15
|
|
||||||
- platformio run
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: change
|
on_success: change
|
||||||
|
24
command.sh
24
command.sh
@ -3,8 +3,20 @@
|
|||||||
function build_sketch()
|
function build_sketch()
|
||||||
{
|
{
|
||||||
local sketch=$1
|
local sketch=$1
|
||||||
|
local target=$2
|
||||||
# buld sketch with arudino ide
|
local ide=$3
|
||||||
|
if [[ "$3" == "arduino" ]];
|
||||||
|
then
|
||||||
|
rm -f $HOME/.arduino15/preferences.txt
|
||||||
|
if [[ "$2" == "esp32" ]];
|
||||||
|
then
|
||||||
|
echo "setup for esp32"
|
||||||
|
arduino --board esp32:esp32:esp32:PartitionScheme=min_spiffs,FlashFreq=80,PSRAM=disabled,CPUFreq=240,FlashMode=qio,FlashSize=4M,DebugLevel=none --pref compiler.warning_level=all --save-prefs
|
||||||
|
else
|
||||||
|
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
|
||||||
|
# build sketch with arduino ide
|
||||||
echo -e "\n Build $sketch \n"
|
echo -e "\n Build $sketch \n"
|
||||||
arduino --verbose --verify $sketch
|
arduino --verbose --verify $sketch
|
||||||
|
|
||||||
@ -16,4 +28,12 @@ function build_sketch()
|
|||||||
echo "Failed to build $sketch"
|
echo "Failed to build $sketch"
|
||||||
return $re
|
return $re
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "setup for platformIO"
|
||||||
|
rm -fr $HOME/arduino_ide
|
||||||
|
rm -fr $HOME/.arduino15
|
||||||
|
platformio run
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user